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 » unset methods in MQ to refresh an object

Post new topic  Reply to topic
 unset methods in MQ to refresh an object « View previous topic :: View next topic » 
Author Message
girlinusa2006
PostPosted: Thu Aug 03, 2006 10:45 am    Post subject: unset methods in MQ to refresh an object Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 03, 2006 10:47 am    Post subject: Reply with quote

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
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 » unset methods in MQ to refresh an object
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.