users@glassfish.java.net

JMS cluster problem

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Feb 2009 07:04:11 PST

Hi, im trying to make a clustered queue that has a remote producer and consumer, Im using glassfish, and what i did is:

-Configure to local de jms service in the standalone admin server
- To remote the jms service in the cluster with the host pointing to de admin server.

This works fine in one computer when i tested it with two instances, but when i added a second node agent from a remote pc, all is running properly in glassfish, but i can't connect to the queue in that pc regardless the instance is running.

To try the connection to the queue I use the following code

Context ctx;
    public JmsClient() {
     
        Hashtable properties = new Hashtable(2);
        properties.put(Context.PROVIDER_URL,"iiop://[i]DasHost[/i]:[i]iiop_port_listener[/i]");
properties.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");

and then make the corrspondig lookups of the conection factory and the queue.

This is my first post here, so thanks in advance for any help
[Message sent by forum member 'andabek' (andabek)]

http://forums.java.net/jive/thread.jspa?messageID=331566