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 » General Discussion » Channel Connections reaching maximum with c#.net code

Post new topic  Reply to topic
 Channel Connections reaching maximum with c#.net code « View previous topic :: View next topic » 
Author Message
gbarretta
PostPosted: Thu Nov 10, 2005 9:52 am    Post subject: Channel Connections reaching maximum with c#.net code Reply with quote

Newbie

Joined: 27 Sep 2005
Posts: 2

I am experiencing problems with a service I wrote. It wakes up every 15 seconds and opens a connection to the queue manager, looks for any messages, closes the manager and waits another 15 seconds and does the same again. Here is my code that I use to open the connection to the queue manager. Also is the line of code I use to close the connection to the manager. Can you see anything that would cause the channel connections to not release?



MQEnvironment.Hostname = strHostName;
MQEnvironment.Port = intPort;
MQEnvironment.Channel = strChannel;
MQEnvironment.SSLKeyRepository = strKeyRepos;
MQEnvironment.SSLCipherSpec = strCipher;
mgrMQ = new MQQueueManager(strManager);

// Code that reads the queue not shown

mgrMQ.Close();
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Nov 10, 2005 10:06 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

This is Java, right?

15 seconds is simply too short a time - MQ will keep the connection around on the qm side for a good bit longer than that.

You should establish your connections at service startup and cache them in a pool. Then check your queues every 15 seconds.
_________________
I am *not* the model of the modern major general.
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 » General Discussion » Channel Connections reaching maximum with c#.net code
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.