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 » How to control messageid generation

Post new topic  Reply to topic
 How to control messageid generation « View previous topic :: View next topic » 
Author Message
xerex
PostPosted: Thu Jul 20, 2006 12:09 pm    Post subject: How to control messageid generation Reply with quote

Newbie

Joined: 20 Jul 2006
Posts: 1

In our application we want our message to retain the MessageID what ever we are generating instead of taking the MessageID generated by Websphere MQ. Currently MQ is overwriting our msgid. Is it possible to control it. Please let me know, its very imp for our application.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
mvic
PostPosted: Thu Jul 20, 2006 12:15 pm    Post subject: Re: How to control messageid generation Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

xerex wrote:
In our application we want our message to retain the MessageID what ever we are generating instead of taking the MessageID generated by Websphere MQ.

Search the manuals for MQPMO_NEW_MSG_ID
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Jul 20, 2006 12:27 pm    Post subject: Re: How to control messageid generation Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

mvic wrote:
xerex wrote:
In our application we want our message to retain the MessageID what ever we are generating instead of taking the MessageID generated by Websphere MQ.

Search the manuals for MQPMO_NEW_MSG_ID
Does that also work for JMS? xerex didn't specify whether its base or jms classes....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
mvic
PostPosted: Thu Jul 20, 2006 12:47 pm    Post subject: Re: How to control messageid generation Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

wschutz wrote:
Does that also work for JMS? xerex didn't specify whether its base or jms classes....

I see a JMSMessage.setJMSMessageID() method. The Using Java manual says, under the description for this method: "Any value set using this method is ignored when the message is sent, but this method can be used to change the value in a received message."

So I think the answer to your question is probably "no".

But I think fuller control should be possible when using the base MQ Java classes.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 20, 2006 1:29 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And I wonder if just using the correlId would be sufficient to cater to his needs.
He did not say why he wanted to keep the msgId set by his app or what for...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jsasvari
PostPosted: Fri Jul 28, 2006 1:23 pm    Post subject: Re: How to control messageid generation Reply with quote

Newbie

Joined: 17 Nov 2003
Posts: 1
Location: Toronto

xerex wrote:
In our application we want our message to retain the MessageID what ever we are generating instead of taking the MessageID generated by Websphere MQ.
This also means you will have to generate and manage the uniqueness of these MessageIDs. Why have the application do this when the queue manager can do the job out of the box? Do you want to control which specific GroupIDs the consumer should process?
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 » How to control messageid generation
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.