users@glassfish.java.net

Re: Could not received JMS messages sent from remote GF 3.x servers

From: <glassfish_at_javadesktop.org>
Date: Wed, 12 May 2010 03:27:21 PDT

> Nigel> 1. When you started the Glassfish instance on
> PC1, did you see the message " SJSMQ JMS Resource
> Adapter starting: EMBEDDED" or" SJSMQ JMS Resource
> Adapter starting: LOCAL" in the server log?
>
> Yes. Refer to the attached GF 3.0.1
> server log attached for detail.

That server log says "SJSMQ JMS Resource Adapter starting: DIRECT". But that's the same as EMBEDDED. So the broker was running, and it was in-process with the Glassfish server.

> [u]domain.xml on PC1 (GF 3.0.1) - receives
> JMS message[/u]

I presume you mean that this is the machine where the broker was running, and which the JMS client on PC2 could not connect to.

> [b]<jms-service
> default-jms-host="default_JMS_host"
> type="EMBEDDED">
> <jms-host host="localhost"
> name="default_JMS_host" lazy-init="true" />
> </jms-service>[/b]

You have <jms-host host="localhost", which will only allow clients on the same machine to connect. You need to change this (either by editing this file, via asadmin or via the admin console),

The default value for this attribute changed from Glassfish V2.1 to Glassfish V3, and this change is noted in the V3 release note:
http://docs.sun.com/app/docs/doc/820-7688/gjktp?l=en&a=view

Nigel
[Message sent by forum member 'nigeldeakin']

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