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 Java / JMS » client channel table file

Post new topic  Reply to topic
 client channel table file « View previous topic :: View next topic » 
Author Message
Frizz_The_Cat
PostPosted: Thu Feb 19, 2004 6:41 am    Post subject: client channel table file Reply with quote

Newbie

Joined: 19 Feb 2004
Posts: 2

Hi,

is it possible to connect (via the base java classes) to MQ using a client channel table file ?

best regards,
F.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Feb 19, 2004 10:19 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

The Java doesn't allow the use of the table.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Frizz_The_Cat
PostPosted: Fri Feb 20, 2004 12:23 am    Post subject: Reply with quote

Newbie

Joined: 19 Feb 2004
Posts: 2

That's really bad. Do you know if there is a workaround for this ?

I want to use the channel feature to achieve some kind of failover machanism.

best regards,
F.
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Feb 20, 2004 9:41 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");

//If it cannot connect then

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



Or you can put all these values in a file. Read the file to get the values for a QMGR and try connecting to the next QMGR entry if the previous one fails.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » client channel table file
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.