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 » General IBM MQ Support » SOLVED: Defining multiple server connections for client

Post new topic  Reply to topic
 SOLVED: Defining multiple server connections for client « View previous topic :: View next topic » 
Author Message
mquser925
PostPosted: Tue May 27, 2008 5:28 am    Post subject: SOLVED: Defining multiple server connections for client Reply with quote

Acolyte

Joined: 22 Apr 2008
Posts: 61

Hello all,

I am trying to define multiple server connections for a client to connect to in case of server failure in the client channel defintion table. I start the first qm using the first script and then copy AMQCLCHL.TAB from @IPCC to the client machine and specify the directory and file name using MQCHLTAB and MQCHLLIB. I then stop the first queue manager and start the other queue manager on another machine using the second script. I try to put a message on the qm using amqsputc TEST.A.Q TEST but I get a 2059 error. Am I missing a step here?

Code:

#mq script
crtmqm -u SYSTEM.DEAD.LETTER.QUEUE TEST
strmqm TEST
runmqsc TEST << EOF
  DEFINE QLOCAL (TEST.A.Q) PROCESS (TEST.PROCESS) DEFPSIST(YES) INITQ(TEST.INIT.QUEUE) TRIGGER TRIGTYPE(EVERY) REPLACE   
  DEFINE QLOCAL(TEST.INIT.QUEUE) GET(ENABLED)
  DEFINE PROCESS(TEST.PROCESS) APPLTYPE(UNIX) APPLICID('java helloworld')
  DEFINE CHANNEL (TEST.SVRCONN) CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER('user1') REPLACE
  DEFINE CHANNEL (TEST.SVRCONN) CHLTYPE(CLNTCONN) TRPTYPE(TCP) CONNAME('xx.xxx.x.15(1414)') QMNAME(TEST)
  DEFINE CHANNEL (TEST.SVRCONN) CHLTYPE(CLNTCONN) TRPTYPE(TCP) CONNAME('xx.xxx.x.14(1414)') QMNAME(TEST)
  DEFINE LISTENER (TEST.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1414) REPLACE
  START LISTENER(TEST.LISTENER)
EOF
setmqaut -m TEST -n TEST.A.Q -t q -g group1 +get +put
setmqaut -m TEST -t qmgr -g group1 +all
runmqtrm -m TEST -q TEST.INIT.QUEUE &


Code:

#mq script
crtmqm -u SYSTEM.DEAD.LETTER.QUEUE TEST
strmqm TEST
runmqsc TEST << EOF
  DEFINE QLOCAL (TEST.A.Q) DEFPSIST(YES) REPLACE
  DEFINE CHANNEL (TEST.SVRCONN) CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER('user1') REPLACE
  DEFINE CHANNEL (TEST.SVRCONN) CHLTYPE(CLNTCONN) TRPTYPE(TCP) CONNAME('xx.xxx.x.14(1414)') QMNAME(TEST)
  DEFINE LISTENER (TEST.LISTENER) TRPTYPE(TCP) CONTROL(QMGR) PORT(1414) REPLACE
  START LISTENER(TEST.LISTENER)
EOF
setmqaut -m TEST -n TEST.A.Q -t q -g group1 +get +put
setmqaut -m TEST -t qmgr -g group1 +all


EDIT:
Solved my problem, each pair of channel server/client connections for each QM has to have a unique name.
Back to top
View user's profile Send private message
sumit
PostPosted: Tue May 27, 2008 5:59 am    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

yes, the AMQCLCHL.TAB contains the host name with port number which actually helps to map it to a certain server.
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » SOLVED: Defining multiple server connections for client
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.