-
1. Re: MDB processing not stopping on shutdown of node in cluster
wdfink Sep 25, 2013 2:15 AM (in response to guptaneha1283)1 of 1 people found this helpfulIf you shutdown the server this is graceful, that mean all running executions (ejb timer, MDB, ejb and other invocations) try to complete the workand transaction.
So if the MDB has start processing a Message this will be finished. This is the expected behavior.
You might put more than one Message into the queue and delay it for a test.
-
2. Re: MDB processing not stopping on shutdown of node in cluster
guptaneha1283 Sep 25, 2013 3:11 AM (in response to wdfink)Thanks for your prompt reply!
Just wanted to confirm what you have suggested:
I should put multiple messages in the queue. While MDB has picked up one of the messages for processing, I should shut down the server. Then all the rest of the messages in the queue should be processed by the other node which is still active. This will certify whether failover is happening correctly?
-
3. Re: MDB processing not stopping on shutdown of node in cluster
wdfink Sep 25, 2013 1:09 PM (in response to guptaneha1283)Yes, that's the expectation.
Maybe it depends on the JMS provider (JBoss Messaging or HornetQ) how to configure correct