activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Correlation ID for request/response
Date Thu, 17 May 2007 13:53:35 GMT
On 5/17/07, mjparme <mjparmeley@west.com> wrote:
>
> When you are using JMS for request/response and you set the correlation ID on
> the message does this ID have to be unique for the lifetime of the
> well-known queue you are sending to or does it only have to be unique for
> the messages currently in the queue?

It can be any ID at all; whether unique or not. e.g. you could recycle
the same ID after each conversation terminates if you like; so it only
needs to be unique among the currently active conversations. Often a
client creates it to correlate responses on a temporary queue; so it
can be unique within a single JVM in some circumstances.

-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message