Showing results for 
Search instead for 
Did you mean: 

Remote lookup of WAS-JMS-Factory from standalone nonJ2EE client?

0 Kudos


I am working on a non-J2EE-Client which runs as a bundled application on OSGI, and need to send and receive messages to/from a queue which is adminstered by the WAS JMS provider. Unfortunately, I cannot even do a lookup of the ConnectionFactory so far..

A naive attempt was to do the following:

props.put(Context.PROVIDER_URL, "hostOfServer:50004");

Context jndiContext = new InitialContext(props);

factory = (QueueConnectionFactory) jndiContext.lookup(CONNECTION_FACTORY);

but as expected that didn't work with JNDI.

Does anybody have a hint what I have to do to to the remote lookup?

View Entire Topic
Active Contributor
0 Kudos

Hi Katrin,

Don`t really know whether it will usefull for you but anyway - check this

Best regards, Maksim Rashchynski.