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 » Connect to Two or more Q Managers on Different Host JVM

Post new topic  Reply to topic
 Connect to Two or more Q Managers on Different Host JVM « View previous topic :: View next topic » 
Author Message
nyey
PostPosted: Thu Mar 13, 2003 9:52 am    Post subject: Connect to Two or more Q Managers on Different Host JVM Reply with quote

Acolyte

Joined: 13 Mar 2003
Posts: 57

I have code like this:

MQEnvironment.hostname = "160.101.99.9";
MQEnvironment.channel = "CHANNEL1";
MQEnvironment.port = 1414;
qMgr = new MQQueueManager("WSAD_TESTSERVER");

If MQEnvironment is a singleton, how can I connect to two or more Q Managers from 1 JVM?

Thanks.

nyey
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Mar 13, 2003 10:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Code:
MQEnvironment.hostname = "160.101.99.9";
MQEnvironment.channel = "CHANNEL1";
MQEnvironment.port = 1414;
qMgr = new MQQueueManager("WSAD_TESTSERVER");

MQEnvironment.hostname = "anotherhost";
MQEnvironment.channel = "CHANNEL1";
MQEnvironment.port = 1414;
qMgr1 = new MQQueueManager("WSAD_TESTSERVER2");



Is that what you are asking. I don't know what you mean by singleton but you should be able to connect to 2 QMGRs thru one program that way

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nyey
PostPosted: Thu Mar 13, 2003 10:53 am    Post subject: Connect to 2 or more QMgrs from 1 JVM Reply with quote

Acolyte

Joined: 13 Mar 2003
Posts: 57

Thanks. I will give that a try.... nyey
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 » Connect to Two or more Q Managers on Different Host JVM
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.