File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes JMS in Clusterd Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JMS in Clusterd Weblogic" Watch "JMS in Clusterd Weblogic" New topic
Author

JMS in Clusterd Weblogic

vijay prakash
Greenhorn

Joined: Aug 23, 2005
Posts: 11
Need information on how Clustered JMS works.
Say i have a MDB listening to a topic that is a distributed destination(Clustered on 'n' instances)and i deploy the MDB on all the instances of the cluster.
If i happen to post a message to the topic then i recieve the message on all the MDB's atleast twice the no of instance times.
Why does this happen?Though they are all the same MDBs they all recieve the same message...!

Vijay.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
We just faced this problem on a system I am working on.

From Weblogic's docs "The built-in connection factories create sessions with no client ID". If you set a client id (either in the deployment descriptor or by calling a method when your bean starts up) and make it the same in all of your clustered beans, then they should only get one copy of the message between them.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
vijay prakash
Greenhorn

Joined: Aug 23, 2005
Posts: 11
Frank,
I tried out what u suggested.
I added <jms-client-id>Myid</jms-client-id> in my deployment descriptor.
I made my own topic connection fatory and in the connection used the setClientID("Myid") but still the issue persists.
I m working with weblogic 8.1(sp4).
In the EJB monitoring i could see many active JMS connections for the MDB in the instances.Does this have anything to do with the issue..? or is it the MDB pool information..

Thanks,
Vijay.
Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
Hi Vijay,

Did you have any luck with Frank's solution. Recently, I've been having same problem as yours,

If i happen to post a message to the topic then i recieve the message on all the MDB's atleast twice the no of instance times.
Why does this happen?Though they are all the same MDBs they all recieve the same message...!


Let me know if you've got any solution for this. Thanks.


SCJP 1.5, SCEA, ICED (287,484,486)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS in Clusterd Weblogic
 
Similar Threads
Consuming a message in one then one subscribers
Message Driven Beans
MDB + Entity Bean / MDB + SB + EB
Question On JMS
Need messge to be consumed once by MDB deployed in a glassfish cluster?