I am trying to connect to an MQ series v 5.3 server on z/OS using
PCF/Java. The following code snippet does not work:
PCFMessageAgent pcf = new PCFMessageAgent(host, port, srvConn);
This same code works fine on Unix and Windows with MQ 5.3.
The exception I see is:
MQJE001: An MQException occurred: Completion Code 2, Reason 2059
MQJE036: Queue manager rejected connection attempt
MQJE001: Completion Code 2, Reason 2059
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2059
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:172)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:270)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:290)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:682)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:620)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:393)
at com.ibm.mq.pcf.PCFAgent.connect(PCFAgent.java:317)
at com.ibm.mq.pcf.PCFAgent.<init>(PCFAgent.java:211)
at com.ibm.mq.pcf.PCFMessageAgent.<init>(PCFMessageAgent.java:150)
Appreciate any assistance in figuring out what could be causing this
problem.
Regards,
Victor
2059 = Cant connect to queue manager
Did you define a SVRCONN type channel on the z/OS queue manager, and
provide the name to JMS MQ?
Have a look at the CHIN job log on z/OS for more diagnostics.
Glenn.
First off, for MQ client access to z/OS, you need to have CAF (Client
Attachment Feature) install on z/OS.
Second, z/OS or OS/390 or MVS does NOT support PCF. You must use plain
text MQSC commands.
Regards, Roger Lacroix Capitalware Inc. http://www.capitalware.biz
--
posted via MFF : http://www.MainFrameForum.com - USENET Gateway