Posted: Tue Feb 03, 2004 5:03 am Post subject: How to Close The Channel
Newbie
Joined: 17 Nov 2003 Posts: 5
Can anyone please advise me how do you close the CHANNELS , i have an VB application which talks with AS/400 server for receiving and sending of messages.
The Problem I am facing is every time i send the message and retrieve the message it works fine , but the problem is it keep's open the channel and it keeps on creating new channel everytime i connect to the server.
Please advise at the earliest how to close the channels once used.
It seems like you are calling the API for getting the connection object to the Queue manager again and again instead of getting connected to the Queue everytime using the Connection handle for the Queue manager.
This is the reason why the number of connection handles to the channel goes on increasing everytime. I believe you can rectify it by getting connection object to the Queue manager only ONCE and then use the same QueueManager connection object to get connected to the Queue you want to put/get message and then close connection to that particular QUEUE alone.
Let me know if it works.
- Saju _________________ Dreams get you into the future and add excitement to the present...
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