This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Question On JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "Question On JMS" Watch "Question On JMS" New topic
Author

Question On JMS

Nandu itha
Greenhorn

Joined: Feb 08, 2010
Posts: 22
Question Duplicate Consumption of messages in Clustered Envirornment with Publish/Subscriber type

Lets i have a MDB and that got deployed in clustered envirornment .

One of the client sent a message to the topic and the consumer or subscriber to this topic have been deployed in the clustered envirornment and is there a guarantee like when this topic is consumed by 1 MDB in one of the container and will the same topic will be consumed by the same MDB in another container?

If its consumed second container its like duplicate consumption will it really happen or am i thinking too much .

If this can happen how should we avoid this.

Thanks
-Nandu
Ionut Bucurescu
Ranch Hand

Joined: Dec 19, 2006
Posts: 68
The message will be consumed only once by the same subscriber inside the cluster otherwise it breaks the JMS spec. The topic is visible to the entire cluster.


SCJP 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA5
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Question On JMS
 
Similar Threads
Need messge to be consumed once by MDB deployed in a glassfish cluster?
Single MDB instane - multiple messages ?
JMS in Clusterd Weblogic
Message Driven Beans
Questions on JMS