MessageListener onMessage method only works locally

davidrh-sFbbPxZDHXw0n/[email protected] Mon, 05 Jun 2006 10:46:24 +1000
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
I am attempting to use the MessageListener interface with OpenJMS to receive messages via. The onMessage method. Everything works when OpenJMS and 
the client apps are running on the same machine, but no messages appear to be received and processed when the receiver that has the MessageListener is moved to a 
different machine.

When I browse the queue with Hermes I can see that the same number of messages that I have MessageListeners for have disappeared off the queue. i.e. if I create and register 
10  MessageListeners, then 10 messages disappear from the queue. When I kill the receiving process, the ten messages come back again.

The machines I am running on are located next to each other and connected to the same hub.  I’m not aware of any firewalls, and we run loads of other TCP based stuff in this environment (app servers, other JMS providers, databases etc.).

Is there anything special that needs to be configured in OpenJMS to make this work? I'm just using the tcp: protocol and JNDI to get the connection factory as per the examples on the site. Sending messages seems to be fine.

I am running OpenJMS 0.7.7 alpha 3.

_______________________________________________
openjms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openjms-user