When building an Initial Context, you will need the following 3 properties:
java.naming.factory.initial java.naming.provider.url java.naming.factory.url.pkgs In this case, for java.naming.provider.url value, use a comma separated list of JNDI URLs. For example if the hosts in your cluster are hostname1, hostname2, then java.naming.provider.url=jnp://<hostname1>:1100,jnp://<hostname2>:1100 Note that you are using the Port=1100, instead of Port=1099. Port 1100 is where the HA JNDI services are available. So, it does not matter where the Queue actually is or where the Master Node is. It does cover you even if one of the nodes were to brought down. With that setup, the following (typical) code shoud look up the Queue. InitialContext iniCtx = new InitialContext(); Object tmp = iniCtx.lookup("XAConnectionFactory"); QueueConnectionFactory qcf = (QueueConnectionFactory) tmp; conn = qcf.createQueueConnection(); que = (Queue) iniCtx.lookup("queue/testQueue"); Kiran View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900965#3900965 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900965 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user