Hi Support Team
I have a problem while connect to JBoss EAP 7
Product webMethods Integration Server
Version 10.1.0.0
Updates None
Build Number 99
I use the 3rd library (wildfly-client-all) and copy it to “/data/SoftwareAG/IntegrationServer/lib/jars” and “/data/SoftwareAG/IntegrationServer/instances/default/packages/PACKAGE/code/jars”, restart IS, reload package.
But I cannot use API javax.jms.ConnectionFactory.createContext() while javax.jms.ConnectionFactory.createConnection() can.
(All the API work fine if I use Netbean IDE)
So, why the IS dont use the API in my 3rd library? How can I fix this?
as IntegrationServer/lib/jars is not part of the classpath of IntegrationServer you should move the jar to IntegrationServer/instances/default/lib/jars/custom instead.
Remember to restart IS after adding jars to lib/jars/custom.
Package is automatically reloaded up restart.
Reloading the package is posssible when just the jar under the packages/PACKAGE/code/jars has been changed.
Did you check if it might be possible to just add a JNDI/JMS-Connection under Settings → Messaging configuration in IS to connect to the JBoss? If this is possible you can rely on the Built-In-Services under pub.jms-Folder in WmPublic package instead of having to bother with custom Java code.
You can ask your JBoss partner if they can send you the neccessary common JBoss-Jars.
Thank you for your anwser
Now I was added the jar library to IS server but cannot work
String provider_url = “http-remoting://” + host;
final Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY, “org.wildfly.naming.client.WildFlyInitialContextFactory”);
env.put(Context.PROVIDER_URL, provider_url);
env.put(Context.SECURITY_PRINCIPAL, userName);
env.put(Context.SECURITY_CREDENTIALS, password);
// Create the initial context
namingContext = new InitialContext(env);
javax.jms.ConnectionFactory connectionFactory
= (javax.jms.ConnectionFactory) namingContext.lookup("jms/RemoteConnectionFactory");
=>> this line throw exeption: java.lang.reflect.InvocationTargetException:Could not initialize class org.jboss.remoting3.ConfigurationEndpointSupplier$Holder