|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
set up MessageID via JMS |
« View previous topic :: View next topic » |
Author |
Message
|
peterw686 |
Posted: Wed Jan 21, 2004 1:52 pm Post subject: set up MessageID via JMS |
|
|
Acolyte
Joined: 26 Sep 2002 Posts: 73
|
Hi,
I want to set up MessageID specifically(not the auto generated one) using JMS. How?
I can use Java client code like :
Code: |
int openOptions = MQC.MQOO_OUTPUT | MQC.MQOO_SET_IDENTITY_CONTEXT;
pmo.options = MQC.MQPMO_SET_IDENTITY_CONTEXT | MQC.MQPMO_SYNCPOINT;
mqMsg.messageId = messageID.getBytes(); |
By using JMS, I use below code, how ever, it doesn't set up properly.
Code: |
jmsmsg.setJMSMessageID(messageID); |
|
|
Back to top |
|
 |
bower5932 |
Posted: Wed Jan 21, 2004 3:17 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I don't think you have the option to set the JMSMessageID. If you'll look at chapter 12, you'll see that it is set by the provider (ie, MQ) at send time. |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Jan 21, 2004 3:28 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Hi Ron, I don't really know why... (probably because I am not a Java/JMS literate) but the way I read that part was in the send method you can set JMSMessageID.
So now I understand that these JMS fields are filled after you have called the method...
Although not of direct use to me, thanks for making me understand it correctly
Michael |
|
Back to top |
|
 |
peterw686 |
Posted: Thu Jan 22, 2004 8:15 am Post subject: |
|
|
Acolyte
Joined: 26 Sep 2002 Posts: 73
|
However, if I use Java client, I can set the message ID like:
Code: |
mqMsg.messageId = messageID.getBytes(); |
Does not JMS provide the same funtion? |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Jan 22, 2004 9:26 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
JMS provides the function that is specified in the specification. There are things that the base MQ product will allow you to do that are not in the JMS spec. |
|
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
|
|
|
|