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 API Support » How to use Message ID

Post new topic  Reply to topic
 How to use Message ID « View previous topic :: View next topic » 
Author Message
jigjim
PostPosted: Fri Jun 04, 2004 11:45 am    Post subject: How to use Message ID Reply with quote

Apprentice

Joined: 30 Mar 2004
Posts: 41

Hi
I am using MQClient connection in Java. I put a lot of IMS messages on a bridge q and read them from a local q. How do i relate the "response" message with the "request" message. I thought of two ways

1. Use message Id to tag the message request and response. I thought of using "msg.messageId = MQC.MQPMO_NEW_MSG_ID" to generate new msg id's. But have to figure out how to convert them into a byte array. Using thsi technique? how do i read the msg from the Q so i get the response to my tagged request?

2. Create a dynamic Q as the reply to Q and then read from that Q the msg? Message expiry and Dynamic expiry have to be sync'd up to prevent the flooding of dead letter q.

Which is the better design ? Please advise

Thanks

Jigs





How do i create a unique Message ID.
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Jun 04, 2004 12:36 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

This may be of some help:


http://www.mqseries.net/phpBB2/viewtopic.php?t=7298&highlight=paradigm

Also look at the repository for samples
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » How to use Message ID
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.