users@glassfish.java.net

How to handle OpenMQ failover in MDB?

From: <glassfish_at_javadesktop.org>
Date: Wed, 29 Jul 2009 12:58:18 PDT

Hi all,

we are currently doing some test with the OpenMQ failover. We have two Glassfish nodes which each have their OpenMQ broker in REMOTE mode. With a stand-alone program we are sending 100 messages to a persistent queue where an MDB listens to. The MDB sends the message on to another queue. While the sending of the 100 msgs to the MDB is in progress we stop the broker that is used. Now there are a lot of Exceptions but once the failover process is done we see that not all messages were delivered.
How should I react on such Exceptions? Should I try to resend the messages again? We found some examples of how stand-alone JMS clients should handle these incidents but what should I do in an MDB? Should the container take care of the transaction handling itself? Or do I have to do something special?
Any help or pointing to a guide would be greatly appreciated.

Thanks in advance,
Chris.
[Message sent by forum member 'chrjohn' (chrjohn)]

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