users@glassfish.java.net

Re: N number of remote JMS clients = N number of application servers?

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Jan 2008 16:21:16 PST

Ahaaaaa!!!!! Solved it. Posting solution here so that it may help others.

The domain.xml file (for me it's under $GLASSFISH_HOME/domains/domain1/config/domain.xml) needs to have the proper IP address configured.

<iiop-listener address="0.0.0.0" enabled="true" id="orb-listener-1" port="3700" security-enabled="false"/> was the default for me. This will work locally, but for remote clients, it connects then tries to resolve "0.0.0.0" to the loopback 127.0.0.1. Change this to the IP addy of your app server.

<jms-host admin-password="admin" admin-user-name="admin" host="localhost.localdomain" name="default_JMS_host" port="7676"/> was the default for me. If you change "localhost.localdomain" to the actual IP addy, the remote client will then be able to connect.

Note however, the JMS service type works regardless of remote, embedded, or local.

-pn42
[Message sent by forum member 'pnguyen42' (pnguyen42)]

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