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 » WebSphere Message Broker (ACE) Support » Fail to create multiple imq instance

Post new topic  Reply to topic
 Fail to create multiple imq instance « View previous topic :: View next topic » 
Author Message
guccica
PostPosted: Tue Dec 18, 2007 6:15 am    Post subject: Fail to create multiple imq instance Reply with quote

Novice

Joined: 18 Dec 2007
Posts: 17

Hi all

I had created following structure in order to create multiple instance/connection to MQ Server. However, i failed to create the multiple connection to the MQ Server. The stuct as follow

typedef struct MQObject
{
ImqQueueManager mpManager1;
ImqQueueManager mpManager2;
ImqChannel mpChannel1;
ImqChannel mpChannel2;
ImqQueue mpQueue1;
ImqQueue mpQueue2;
}MQObjectType;

i try to create multiple instance of MQObject type by using dequeue's push back function. Everything look fine if multiple instance init at the same time. However, the problem occured when i try to add new instance to the dequeue after every instance was initiated.

Follow was the dequeue handling method

for(int i=0; i<total; i++)
{
MQObjectType mqObj;
pgMQObj.push_back(mqObj);
}


I had tried to use malloc and realloc to handle this kind of situation before, however still failed to do so.

Hope will get help from anyone

Thanks.

Regard
guccica
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 » WebSphere Message Broker (ACE) Support » Fail to create multiple imq instance
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.