I am writing a simple java program to connect to remote WebSphere MQ Queue Manager but its showing the error: MQJE001: Completion Code '2', Reason '2009'
Yet when I connect using WMQ Explorer, its getting connected and I am able to see the messages in the queue there. Kindly help. My code is:
public void init(){
props.put(MQC.HOST_NAME_PROPERTY, "sailmq3d.pok.ibm.com");
props.put(MQC.CHANNEL_PROPERTY, "PLM.SECURE.SVRCONN");
props.put(MQC.PORT_PROPERTY, 1423); // port number
props.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES);
}
public void start(){
try {
// Create a connection to the queue manager
qMgr = new MQQueueManager("PLMESB_SBMD2",props);