Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java client connection to server MQ manager 1

Status
Not open for further replies.

clhan

Programmer
Jan 25, 2006
2
DK
Hi,
I am trying to connect to a server manager running on Windows 2003. On the server I created a TESTM manager, a TESTQ local queue and a server, client channel as:

DEFINE CHANNEL(ALPHA) CHLTYPE(SVRCONN) TRPTYPE(TCP) +
DESCR('Server connection to WebSphere MQ client')

DEFINE CHANNEL(APLHA) CHLTYPE(CLNTCONN) TRPTYPE(TCP) +
CONNAME(172.29.79.80) DESCR('WebSphere MQ client connection to server 1') +
QMNAME(TESTM)

From my Java program running under Windows XP, I am trying to connect using AMQCLCHL.TAB witch I copied from the server. Before running the program I set MQCHLLIB and MQCHLTAB.

The error I am getting is mqjbnd05.dll: Can't find dependent libraries, which is MQM.dll. The mqm.dll is a server dll.

Can anybody help me?
Thanks in advance

MQQueueManager queueManager = new MQQueueManager(“*TESTM”);


 
Sorry, I found out that mqjbnd05.dll also is a server dll. I changed the java code to do Hashtable props = new java.util.Hashtable();
props.put
(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);

queueManager = new MQQueueManager(queueManagerName, props);

Then I got this error:
MQJE011: Socket connection attempt refused
com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2059.

I think it is because the program isn’t using the AMQCLCHL.TAB file.

Please help
Thanks
 
What version of MQ are you using for your Java client? Only version 6 uses the chanel table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top