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 » Easy Postcard app question - JMSMessageID

Post new topic  Reply to topic
 Easy Postcard app question - JMSMessageID « View previous topic :: View next topic » 
Author Message
yeager1971
PostPosted: Thu Dec 18, 2003 9:06 am    Post subject: Easy Postcard app question - JMSMessageID Reply with quote

Newbie

Joined: 18 Dec 2003
Posts: 1

I'm new to MQSeries and am learning by reviewing the postcard source code decompiled from the 5.3 trial.

When the postcard app's MessageListenerThread receives a message off the queue it goes through a couple of validation steps to make sure it is actually a postcard message. A jad decompiled source shows the following lines:

--------
String s = textmessage.getJMSMessageID();
s = s.substring(3);
s = new String(hexToBytes(s));
boolean flag = !s.equals("IBMMQSeriesPostCardData ");
--------

How is the postcard app able to ensure that all messages have a JMSMessageID of this specific string?

I'm under the assumption that the message ID is automatically assigned a unique number at the end of the send() method. How can the postcard app always specify the same id over and over again?

Obviously I am missing something very basic here...
Thanks!
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 Java / JMS » Easy Postcard app question - JMSMessageID
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.