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 Java / JMS » set up MessageID via JMS

Post new topic  Reply to topic
 set up MessageID via JMS « View previous topic :: View next topic » 
Author Message
peterw686
PostPosted: Wed Jan 21, 2004 1:52 pm    Post subject: set up MessageID via JMS Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Wed Jan 21, 2004 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Michael Dag
PostPosted: Wed Jan 21, 2004 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
peterw686
PostPosted: Thu Jan 22, 2004 8:15 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Jan 22, 2004 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » set up MessageID via JMS
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.