|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQJE001: Completion Code 2, Reason 2046 |
« View previous topic :: View next topic » |
Author |
Message
|
mastanr |
Posted: Fri Jul 29, 2005 6:46 am Post subject: MQJE001: Completion Code 2, Reason 2046 |
|
|
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 |
|
 |
JT |
Posted: Fri Jul 29, 2005 6:58 am Post subject: |
|
|
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 |
|
 |
mastanr |
Posted: Fri Jul 29, 2005 7:53 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|