ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MDbean deployed in WAS Cluster

Post new topic  Reply to topic
 MDbean deployed in WAS Cluster « View previous topic :: View next topic » 
Author Message
santosh.veerlapati
PostPosted: Fri Sep 18, 2009 5:53 am    Post subject: MDbean deployed in WAS Cluster Reply with quote

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

thanks
santosh kumar veerlapati
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Sep 18, 2009 8:23 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

This is not going to happen
  • 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.


Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MDbean deployed in WAS Cluster
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.