Hi Mark,
Thanks for that information. However it’s not helping me. Let me be clearer. I am trying to read a message from a queue created in webMethods Jboss Package: JBoss > Tools > MBean Manager > jboss.mq.destination:name=testWmQueue,service=Queue.
I have written the following code to lookup this queue from an external application:
Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY,“org.jnp.interfaces.NamingContextFactory”);
env.put(Context.PROVIDER_URL,“jnp://10.24.142.132:1099”);
env.put(Context.PROVIDER_URL,“10.24.142.132:8080”);
Context context = new InitialContext(env);
QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory)context.lookup(“java:/ConnectionFactory”);
Queue queue = (Queue)context.lookup("queue/ testWmQueue ");
However I get the following error : javax.naming.NameNotFoundException: queue/ testWmQueue
Please advice if there is any other way to look up a queue at the destination specified above.
Also would like to add that, the Ports detail reads: the Provider as Jetty for Port 8080.
Please help as I am unable to proceed further.
Thanks & Regards,
Neetu
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB