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 cluster in Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JMS cluster in Weblogic" Watch "JMS cluster in Weblogic" New topic
Author

JMS cluster in Weblogic

Anirudha Joshi
Greenhorn

Joined: Apr 08, 2005
Posts: 22
Hello guys,

I am trying to load balance JMS messages in my application and here is what I have setup.
1. I have a admin server and two managed servers MS1 and MS2. I tied them up in a cluster.
2. I created a JMS connection factory and deployed it on the cluster
3. then I created a distributed destination queue (DQ) which is deployed on the cluster and it has members from MS1 and MS2.

Now when I run my application and post the message to the destination queue, messages are distributed correctly and are balanced between MS1 and MS2 queues.

then I created one more JMS server (with a queue destination) on admin server and added that JMS server in the Distributed destination queue (DQ). Now when my application sends message to the DQ, all the messages are going in the default server queue only. They do not go to the MS1 or MS2 queues. I also tried by un-checking server affinity option of the connection factory but it doesnt work.

What is the problem? Why messages are not load balances across multiple queues?

Please help.

- Anirudha
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
I suspect that the problem lies in the fact that JMS servers are not clustered. A JMS server is pinned to a single server in the cluster to preserve data consistency. It does also mean that automatic failover is not supported by WebLogic JMS, so manual recovery is needed.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS cluster in Weblogic
 
Similar Threads
Weblogic 7.0 JDBC Culster
Weblogic 7.0 JDBC Culster
Load Balancing in Websphere 6.x through MDB's
JMS Clustered Distributed Queue Forward Delay Issue
How to read JMS messages from all the managed servers.