?
Solved

what does setJMSCorrelationID and setClientID

Posted on 2007-11-16
1
Medium Priority
?
526 Views
Last Modified: 2008-02-18
in some of the examples for published/subscriber messaging, i see the use of setJMSCorrelationID() and setClientID().  the documentation for them don't seem to be very clear.  what do they do?  and are they essential?  

i am try to create a durable subscriber, and i didn't use these two methods, and the subscriber seems to be working fine as far as getting messages that it subcribes for.  
0
Comment
Question by:mmingfeilam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
Bart Cremers earned 750 total points
ID: 20303744
The JMSCorrelationID header field is used for linking one message with another. It typically links a reply message with its requesting message.

I don't know where you did get the setClientID() from because that method is not specified in the JMS specification.

So, in short, they are not at all essential, only there for you to make life easier.

eg. In our system we use JMSCorrelationIDs to map a message to a record in a database table. The JMSCorrelationID is passed on to several message driven beans, so the last bean in the queue can update the final state of the record in the database.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question