This content has been marked as final.
Show 2 replies
-
1. Re: access Queue with JNDI from outside the app server
narayanrm Feb 2, 2005 12:06 PM (in response to bperry)java.util.Hashtable env = new java.util.Hashtable(); env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); env.put(javax.naming.Context.PROVIDER_URL,"jnp://localhost:1099"); env.put(javax.naming.Context.URL_PKG_PREFIXES,"org.jnp.interfaces"); Context context = new InitialContext(env); javax.jms.QueueConnectionFactory ref = (javax.jms.QueueConnectionFactory) context.lookup("ConnectionFactory"); javax.jms.QueueConnection conn = ref.createQueueConnection(); javax.jms.Queue que = (javax.jms.Queue) context.lookup("queue/A");
-
2. Re: access Queue with JNDI from outside the app server
bperry Feb 3, 2005 12:35 PM (in response to bperry)Okay, so the problem was the absence of the jbossall-client.jar during compilation. I included that in the project and now can a Queue object. Thanks for you help.
Bruce