|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
unset methods in MQ to refresh an object |
« View previous topic :: View next topic » |
Author |
Message
|
girlinusa2006 |
Posted: Thu Aug 03, 2006 10:45 am Post subject: unset methods in MQ to refresh an object |
|
|
Novice
Joined: 09 May 2006 Posts: 24
|
Hi,
In C++, I have created a MQSeriesUtil object library( which has methods to open queue manager, open write/read queue, write to the queue, close queue mgr etc). In this library, I have global ImqQueueManager, ImqQueue, etc defined.
What I am trying to do is, in my main program define a global MQSeriesUtil object, and whenever I have to send a message across to the remote system, I use this object to make a connection , write, close. But I want to clean up this object at the end of it. Because the next time, it can be a different queue manager, and this global object is still holding the old refernce and messing up entire connection.
Are there any unset methods in MQ...so that I can unset ConnectionReference, unset Name...etc???
Thanks in advance.. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 03, 2006 10:47 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I think first you can disconnect, and then you can delete the ImqQueueManager object, and create a new one the next time.
Your global variable is only a pointer. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|