Posted: Thu Nov 10, 2005 9:52 am Post subject: Channel Connections reaching maximum with c#.net code
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?
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.
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