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 » General IBM MQ Support » How to get msg_id after put request in Java

Post new topic  Reply to topic
 How to get msg_id after put request in Java « View previous topic :: View next topic » 
Author Message
pmane
PostPosted: Wed Oct 17, 2001 11:36 pm    Post subject: Reply with quote

Acolyte

Joined: 17 Oct 2001
Posts: 50

I want MQ to genarate the msg_id. But I also want to store this ID in database . I want to know if I can get msg_id after I put the message in the queue. Also is it possible to put the message in the Queue as well as in database in a single trasaction ? If yes can some one give me the simple code for this ??
Back to top
View user's profile Send private message
EddieA
PostPosted: Thu Oct 18, 2001 5:38 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Hi,

Are we talking the Java classes or the JMS classes.

In Java, the messageID variable is updated by the Put with the new value.

In JMS, use the getJMSMessageID() method afer the send.

For transaction co-ordination. I don't think this is available for Java, but I am quite happy to be corrected on this.

For JMS, you need the latest version of MA88 and a JTA compiant Transaction Manager, like WebSphere Application Server.

Cheers.

_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » General IBM MQ Support » How to get msg_id after put request in Java
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.