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 » Multi Consumers on one session

Post new topic  Reply to topic
 Multi Consumers on one session « View previous topic :: View next topic » 
Author Message
kun.leeing
PostPosted: Wed Feb 11, 2009 5:09 am    Post subject: Multi Consumers on one session Reply with quote

Disciple

Joined: 27 Sep 2008
Posts: 171

Hello, everybody.

My problem is I want to cut down the connection number at one client, so I make one client only hold one session shared by multi consumers(my client must receive msg from several different topics).

When run connection.start(), it seems everything is fine.

But when the messages from different topics coming, only the first consumer created can receive its msg that it belongs to in real time, the other consumers will receive their messages finnally after some intervals.

Because my system demands the performance of high realtime, I need all consumers on one client app can receive their real-time messages efficiently and I don't want to make session for every consumer,

how can I design my program or how can I solve this problem?

thanks a lot

lee
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Feb 11, 2009 5:19 am    Post subject: Re: Multi Consumers on one session Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

kun.leeing wrote:
Because my system demands the performance of high realtime, I need all consumers on one client app can receive their real-time messages efficiently and I don't want to make session for every consumer,


Then you have a design decision to make. Either you need to spend the resources, give each consumer a session and get the realtime performance you want, or you can cut down the amount of resources in use and accept there's a performance cost.

Obviously this is not a black & white decision, and there are a number of ways you could allocate resources to give priority to some consumers over others, or in other ways. It all depends on what exactly it is you need to achieve.

For instance (and this is strictly an example) you need to think about the reasons you've decided to limit connections and if the "problems" that caused you to want them limited are more or less serious than your performance "problems".
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Feb 11, 2009 5:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

I also feel this should factor into your decision making process regarding connections.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Feb 11, 2009 5:45 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Look into sharing queue manager connection handles.

It's in the programming reference manual.
Back to top
View user's profile Send private message
kun.leeing
PostPosted: Wed Feb 11, 2009 5:19 pm    Post subject: Reply with quote

Disciple

Joined: 27 Sep 2008
Posts: 171

Thanks for your both replies. This is really a decision not easy to make. And How can i control the priority? How could it make consumers share performance on average?




I will look into the doc,thanks.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Feb 12, 2009 12:49 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

kun.leeing wrote:
This is really a decision not easy to make.


It's why they pay us the big bucks!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Multi Consumers on one session
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.