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!

MQ Request/Reply using Java Base

Status
Not open for further replies.

elamasmo

Programmer
Mar 1, 2002
1
CR
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:
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top