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 API Support » MQQueueManager - is for long leaving or not

Post new topic  Reply to topic
 MQQueueManager - is for long leaving or not « View previous topic :: View next topic » 
Author Message
apk007
PostPosted: Tue May 11, 2010 9:27 am    Post subject: MQQueueManager - is for long leaving or not Reply with quote

Apprentice

Joined: 23 Mar 2010
Posts: 25

We have application where we need to connect to MQ every 10 seconds once. We would like to know the best practices from the group is the MQQueueManager class is deisned to keep the connection open for long. Or we need to open the connection and close as soon we are done.

I am using C# - MQ client 7.0.1

Please let me know the best pratices around this.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue May 11, 2010 9:31 am    Post subject: Re: MQQueueManager - is for long leaving or not Reply with quote

Grand High Poobah

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

apk007 wrote:
Please let me know the best pratices around this.


Connect when the application starts and keep the connection open until the application ends. Connection is a very resource expensive operation and should be done as infrequently as possible.

I'd also recommend using a get with wait rather than polling every 10 seconds to see if a message has shown up.
_________________
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 API Support » MQQueueManager - is for long leaving or not
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.