In HA-JMS, if I want messages on a queue to be delivered only to a listener on 
the master node, should I continue to use MDBs, or would that be abuse of the 
MDB framework?  The online docs and the book go into some detail on container 
and invoker configs, but they all demonstrate how to spread the load across the 
cluster, rather than deliberately restrict it to one node.

The alternative is to have an HA-Singleton which adds itself as a listener to 
the queue explicitly, or starts a thread to receive messages.

Ideally, I'd like to stick with MDBs, since then the container is handling 
things (i.e. less code to maintain), and the code to talk to HA-JMS is rather 
unpleasant, but if MDBs are unsuited to this particular goal, then a plain 
Listener may be the way to go.  

Advice appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905967#3905967

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905967


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to