|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Issue with MQ client connecting to server with CCDT |
« View previous topic :: View next topic » |
Author |
Message
|
amitjain |
Posted: Wed Jan 14, 2015 8:52 am Post subject: Issue with MQ client connecting to server with CCDT |
|
|
 Apprentice
Joined: 14 Jan 2015 Posts: 39
|
Hi,
Issue with connecting to MQ server using CCDT channel definition file.
MQ Server configuration: Version 8.0 Red Hat Linux
MQ Client configuration : Version 8.0 Windows 7 enterprise
If I use MQSERVER variable , I am able to put message on to queue.
set MQSERVER=CMAP_TEST_GT_CHANNEL/TCP/ulonapmqss01(2515)
amqsputc.exe CMAP_TEST_SWIFTSENDQUEUE CMAP_TEST_GTExchange_QM
But If I try to use
set MQCHLLIB=C:\AMITJAIN\UAT_MQ
SET MQCHLTAB=AMQCLCHL.TAB
amqsputc.exe CMAP_TEST_SWIFTSENDQUEUE CMAP_TEST_GTExchange_QM
it fails with
Sample AMQSPUT0 start
MQCONNX ended with reason code 2058
I am able to connect using MQ Explorer on windows when using radio button Connect directly by providing host , port , channel ,queue manager name on eclipse wizard.
But If I use option connect using a client channel definition table , it fails.
output of runmqsc -n
C:\Program Files\IBM\WebSphere MQ\bin64>runmqsc.exe -n
5724-H72 (C) Copyright IBM Corp. 1994, 2014.
Starting local MQSC for 'AMQCLCHL.TAB'.
display channel(CMAP_TEST_GT_CHANNEL)
1 : display channel(CMAP_TEST_GT_CHANNEL)
AMQ8414: Display Channel details.
CHANNEL(CMAP_TEST_GT_CHANNEL) CHLTYPE(CLNTCONN)
AFFINITY(PREFERRED) ALTDATE(2015-01-13)
ALTTIME(16.18.45) CERTLABL( )
CLNTWGHT(0) COMPHDR(NONE)
COMPMSG(NONE) CONNAME(ULONAPMQSS01(2515))
DEFRECON(NO) DESCR(Client-connection to Server_2)
HBINT(300) KAINT(AUTO)
LOCLADDR( ) MAXMSGL(4194304)
MODENAME( ) PASSWORD( )
QMNAME(CMAP_TEST_GTEXCHANGE_QM) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCIPH( ) SSLPEER( )
TPNAME( ) TRPTYPE(TCP)
USERID( )
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.DEF.CLNTCONN) CHLTYPE(CLNTCONN)
AFFINITY(PREFERRED) ALTDATE(2015-01-13)
ALTTIME(11.41.5 CERTLABL( )
CLNTWGHT(0) COMPHDR(NONE)
COMPMSG(NONE) CONNAME( )
DEFRECON(NO) DESCR( )
HBINT(300) KAINT(AUTO)
LOCLADDR( ) MAXMSGL(4194304)
MODENAME( ) PASSWORD( )
QMNAME( ) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCIPH( ) SSLPEER( )
TPNAME( ) TRPTYPE(TCP)
USERID( )
I am able to connect with my java program also by passing parameter but with client channel definition it is not working.
Queue manager is up and running as I am able to put message from java code and also from MQ exlplorer.
Please suggest what I am doing wrong in setup. |
|
Back to top |
|
 |
zpat |
Posted: Wed Jan 14, 2015 8:55 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You have upper case QM name in CCDT and you are coding lower case QM name on the command.
Recommendation: Use only upper case for all MQ objects, especially QM names. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
amitjain |
Posted: Wed Jan 14, 2015 9:17 am Post subject: |
|
|
 Apprentice
Joined: 14 Jan 2015 Posts: 39
|
It is working now. Thanks for help. |
|
Back to top |
|
 |
PaulClarke |
Posted: Wed Jan 14, 2015 9:24 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
And did you change the AMQSPUTC command accordingly? Are you still getting 2058?
Are there any error messages in the client error log ?
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
amitjain |
Posted: Wed Jan 14, 2015 9:27 am Post subject: |
|
|
 Apprentice
Joined: 14 Jan 2015 Posts: 39
|
It is working fine now.
Issue was with case as suggested zpat, problem was that even I give in lower case in CCDT file it was always going in upper case.
I recreated queue manager and used new CCDT generated file it worked both in MQ Explorer and in command prompt on windows 7.
Thanks for quick help!! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|