Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes Need messge to be consumed once by MDB deployed in a glassfish cluster? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Need messge to be consumed once by MDB deployed in a glassfish cluster?" Watch "Need messge to be consumed once by MDB deployed in a glassfish cluster?" New topic
Author

Need messge to be consumed once by MDB deployed in a glassfish cluster?

MengYu Chen
Greenhorn

Joined: Jul 21, 2010
Posts: 2
I have a situation that we have a web app/the JMS publisher, and a MDB the subscriber, both deployed into a glassfish cluster. The MDB should consume the JMS message only ONCE. But with the current deployment configuration, which is with JMS resources running in EMBEDDED mode, we observe the JMS messages are consumed multiple times.

- My question is how would I enable only one MDB in the cluster?

- If MDB failover is not a concern, is it possible to deploy the MDB in the standalone instance, and let it subscribe to the topic in the JMS brokers in the cluster? How to configure this?

- If I set the client_id for the MDB, then all MDB instances would be considered the same? In this case, would only one MDB instance consume the same message at a time?


Thanks!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Need messge to be consumed once by MDB deployed in a glassfish cluster?