Posted: Fri Sep 18, 2009 5:53 am Post subject: MDbean deployed in WAS Cluster
Voyager
Joined: 19 Jun 2008 Posts: 87
Hi
I m using websphere MQ 6.0, and Websphere network depoyment 6.1
for my websphere cluster.
I have 2 members in my WAS cluster, server1 and server2 .
I have configured one queue named "Queue1" under queue manager called QM1 in websphere MQ.
I have configured queue connectiona factory and queue objects at DM (Deployment Manager) level of WAS with max connection pool settins 10 and session pool settings 10.
I have configured listener port named "listener1" in both server1 and server2 of WAS cluster utilizing the connection factory and queue object defined at the DM level.
with settings of max sessions on listener port to 1 and max messages to 1 and max threads to 10.
I have deployed the mdbean at the cluster level of WAS pointing to the listener port created earlier so that it is deployed in both server1 and server2
Now when i drop some 20 messages into the queue , the message driven bean deployed in server1 is receiving some amount of messages and the message driven bean deployed in server2 is receiving another amount of messages , the number of messages that the receive depends upon time to time.
Now my question is to how to configure the connection factory or listener port of destination object inorder to get the loadbalancing between both of the listener ports and the both of the mdbeans deployed in the two servers get the messages equally
You need number of instances of the bean +1 connections
so with a pool of max 10 connection and a single MDB you will get a max of 9 instances of the bean running.
Note that you will also not be able to do any outbound connection...
The assumption is that you have the connection factory transport set to tcp/ip client
In any case any of the instances of the MDB will retrieve the messages on a 'first come/first serve' type of algorythm regardless of where the MDB is actually hosted.
In this case the time it takes for the MDB to process the specific messages may be more important in the load balancing than anything else.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum