Remote initial context lookup not working after feature "jndi" has been installed.
Issue
We are using webmethods with fuse, we got "javax.naming.Reference" in the remote initial context lookup, expecting the lookup return vendor specific connection factory.
The code is like
//lookup failed
initialContext = initializeContext();
Object lookedUpObject = initialContext.lookup("GroupFunctions_ONLINEFX_ConnectionFactory");
WmConnectionFactory wmConnectionFactory = (WmConnectionFactory) lookedUpObject;
//InitialContext
Properties properties = new Properties();
properties.setProperty("java.naming.factory.initial", "com.webmethods.jms.naming.WmJmsNamingCtxFactory");
properties.setProperty("java.naming.provider.url", "wmjmsnaming://myhost@XX.XX.XX.XX:6712/testname");
properties.setProperty("com.webmethods.jms.naming.clientgroup", "admin");
properties.setProperty("ConnectionFactory", "GroupFunctions_ONLINEFX_ConnectionFactory");
return new InitialContext(properties);
Environment
- Red Hat JBoss Fuse 6.2.X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
