ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQJE001: Completion Code 2, Reason 2046

Post new topic  Reply to topic
 MQJE001: Completion Code 2, Reason 2046 « View previous topic :: View next topic » 
Author Message
mastanr
PostPosted: Fri Jul 29, 2005 6:46 am    Post subject: MQJE001: Completion Code 2, Reason 2046 Reply with quote

Novice

Joined: 21 Jul 2005
Posts: 10

Hello:
I am trying to put a message onto a queue and I am getting the above error. My program is REQUEST/REPLY type. Below are the options I am setting. If I take out MQC.MQPMO_NEW_MSG_ID from the GMO options it works. So, if I don't use MQC.MQPMO_NEW_MSG_ID how I can get reply a message for my request?

int openOptions = MQC.MQOO_OUTPUT | MQC.MQOO_FAIL_IF_QUIESCING ;
MQQueue queue = qMgr.accessQueue(requestQueue, openOptions, null, null, null);
MQPutMessageOptions pmo = new MQPutMessageOptions();
pmo.options = pmo.options + MQC.MQPMO_NEW_MSG_ID ;

MQMessage outMsg = new MQMessage();
outMsg.format = MQC.MQFMT_STRING ;
outMsg.messageFlags = MQC.MQMT_REQUEST ;
outMsg.replyToQueueName = replyToQueue;
outMsg.replyToQueueManagerName = replyToQueueManager ;

String msgString = "DSIMK66017360040SP@RAK ";

outMsg.writeString(msgString);

queue.put(outMsg, pmo);


Thanks,
Mastan Reddy.
Back to top
View user's profile Send private message
JT
PostPosted: Fri Jul 29, 2005 6:58 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

From the Using Java manual, section titled 'Restrictions and variations for core classes'

Quote:
MQPMO_* values

The following MQPMO_* values are not supported by all queue managers, and their use might throw MQException from an MQQueue.put() or an MQQueueManager.put():
  • MQPMO_NEW_MESSAGE_ID
  • MQPMO_NEW_CORREL_ID
  • MQPMO_LOGICAL_ORDER
Back to top
View user's profile Send private message
mastanr
PostPosted: Fri Jul 29, 2005 7:53 am    Post subject: Reply with quote

Novice

Joined: 21 Jul 2005
Posts: 10

Thanks for your note. So, the request/reply works even if I don't specify these options?

JT wrote:
From the Using Java manual, section titled 'Restrictions and variations for core classes'

Quote:
MQPMO_* values

The following MQPMO_* values are not supported by all queue managers, and their use might throw MQException from an MQQueue.put() or an MQQueueManager.put():
  • MQPMO_NEW_MESSAGE_ID
  • MQPMO_NEW_CORREL_ID
  • MQPMO_LOGICAL_ORDER
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQJE001: Completion Code 2, Reason 2046
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.