Hi, Mi name is Eladio. I'm having problems to create a request/reply application using de MQ Java Base.
I can connect to the queue manager, get the message and process it, but when i try to put the reply in the remote queue I get the following error: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2087
I'm using the following code to put the reply:
I have already a Visual Basic request/reply application working en this machine, with this queue. So, theoretically the queue's are working as it's supose to be.
I would appreciate any hekp you can give me...
Eladio Masís.
Costa Rica.
I can connect to the queue manager, get the message and process it, but when i try to put the reply in the remote queue I get the following error: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2087
I'm using the following code to put the reply:
Code:
MQQueueManager lobjServidorMqReply = new MQQueueManager(ServerName);
MQMessage lobjMsgRequest = new MQMessage();
int lintReplyOpenOpts = MQC.MQOO_OUTPUT;
MQPutMessageOptions lobjpMsgOpts = new QPutMessageOptions();
lobjReplyMsg.clearMessage();
lobjReplyMsg.format = MQC.MQFMT_STRING;
lobjReplyMsg.messageType = MQC.MQMT_REPLY;
lobjReplyMsg.correlationId = lobjMsgRequest.messageId;
lobjReplyMsg.writeString(lstrReturn); iobjServidorMq.put(lobjMsgRequest.replyToQueueManagerName, lobjMsgRequest.replyToQueueName, lobjReplyMsg, lobjpMsgOpts, "");
I have already a Visual Basic request/reply application working en this machine, with this queue. So, theoretically the queue's are working as it's supose to be.
I would appreciate any hekp you can give me...
Eladio Masís.
Costa Rica.