dev@glassfish.java.net

How remote JMS with the default glassfish configuration

From: Dipl.-Ing. Torsten Liermann <lier_at_liermann-it.de>
Date: Fri, 30 Sep 2011 13:08:25 +0200

Hi,

the default configuration of the jms-service is of type LOCAL and the hostname is localhost.

If a remote client requests the TopicConnectionFactory from the application server, this object
contains the addresslist for the mq service. The URL in this list is "mq://localhost"

If the remote client then tries to connect to this application server, an exception is thrown since it does not reach the server but tries to connect to localhost:
com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Connection refused: connect

Is there a way to setup the jms service without specifing an
ip address so that the remote jms sender can get the glassfish ip address?

Thanks in advance
Torsten