-
MDB in a cluster (2 messages)
- Posted by: Lei Jin
- Posted on: October 14 2003 23:46 EDT
I have a Message Driven Bean in an EAR that is to be deployed into a cluster. However, I don't want the MDB to be deployed onto multiple servers (otherwise, it'll process multiple duplicate messages). Is there a way to tell the container that this is not to be clustered? I'm using weblogic. Thanks!Threaded Messages (2)
- MDB in a cluster by Alex Vye on October 16 2003 08:26 EDT
- MDB in a cluster by Satish Sadasivam on October 21 2003 04:15 EDT
-
MDB in a cluster[ Go to top ]
- Posted by: Alex Vye
- Posted on: October 16 2003 08:26 EDT
- in response to Lei Jin
Define the mdb as being sent to a queue, not a topic. A topic will process the message once for every listener. Weblogic has one listener per node in the cluster.
If you define it as being sent to a queue, the message will be processed once and only once, regardless of how many listeners.
To do this, when you create the jms queue through the management console, define it as type queue.
I have done this in weblogic clusters and it works as expected -
MDB in a cluster[ Go to top ]
- Posted by: Satish Sadasivam
- Posted on: October 21 2003 04:15 EDT
- in response to Lei Jin
Weblogic recommends different configuration for MDB clustering. Refer to Progamming MDBs I would say to keep one of the node in a cluster as a fail over and not the load sharing node, if you dont want to use Queue. Otherwise, develop a filter component that allows only one message.