I am trying to send MQSeries - PCF Commands on Solaris 5.8 platform. The command is to get a channel status from a Q manager , which is locally installed.

When I create PCFAgent(String QMgr) contructor , I was able to send "Inquire channel status" command and received reply successfully.

But when I create PCFAgent(host,port,channel) constructor and send a message , I get the following error:

MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
MQJE001: Completion Code 2, Reason 2009
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009


Any ideas ?

- Sreedhar Tulluri