Remote initial context lookup not working after feature "jndi" has been installed.

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content