users@glassfish.java.net

Re: Problems with remote client sending to JMS topic

From: <forums_at_java.net>
Date: Fri, 8 Jul 2011 05:44:28 -0500 (CDT)

You don't mention clustering so I assume you have just a single GlassFish
instance, with a embedded JMS broker, running on one machine (if you look at
your server log you'll see a message like "MQJMSRA_RA1101: GlassFish MQ JMS
Resource Adapter Started:EMBEDDED".

Now, both producer and consumer will need to successfully connect to this
broker for message delivery to work. If there is an error in your
configuration then the most likely result will be for one or the other to
throw a javax.jms.JMSException. You don't mention this which implies that
both sender and consumer are indeed connecting successfully to the
JMS broker.

If both producer and consumer are indeed successfully ocnnected to the (same)
broker then message delivery will work place in accordance with JMS. Remember
that with topics, your MessageConsumer or TopicSubscriber must have been
created before the message is sent to the topic, and will not receive
messages that were sent to the topic before that.

Nigel

 

 

 

 

 

 


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