Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

what does setJMSCorrelationID and setClientID

Posted on 2007-11-16
1
Medium Priority
?
529 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

604 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