users@glassfish.java.net

Re: remote connection to JMS/MQ on Glassfish

From: <forums_at_java.net>
Date: Thu, 18 Aug 2011 12:18:53 -0500 (CDT)

So you want to be able to run a standalone client on B which creates a JNDI
connection to the GF instance running on B, reads a connection factory, and
uses it to create a JMS connection to the MQ broker running on A?

You need to configure the "JMS Host" on GlassFish B with the hostname and
port of the MQ broker that runs on A.

You also need to configure the JMS Service to use REMOTE mode. The word
"REMOTE" means that it won't start a  MQ broker itself, and clients will
connect to the MQ broker defined in the "JMS Host".

Finally, make sure that GF Instance A's own hostname is not set to localhost
to work around
http://download.oracle.com/docs/cd/E19798-01/821-1759/ggrvi.html#gjktp

A quick way to check whether this is the problem is to log into B and type
telnet <host> <port>
where <host> and <port> are the hostname and port of the MQ broker that runs
on A.
You should receive half a dozen lines of text in response.

Nigel

 


--
[Message sent by forum member 'nigeldeakin']
View Post: http://forums.java.net/node/834184