Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

MQ Request/Reply using Java Base

MQ Request/Reply using Java Base

MQ Request/Reply using Java Base

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:


MQQueueManager lobjServidorMqReply = new MQQueueManager(ServerName);
MQMessage lobjMsgRequest = new MQMessage();
int lintReplyOpenOpts = MQC.MQOO_OUTPUT;                          
MQPutMessageOptions lobjpMsgOpts = new QPutMessageOptions();
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close