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: JMS Request/Reply
Date Wed, 28 Mar 2007 07:42:31 GMT
On 3/24/07, Allesmallachen <Spammails@web.de> wrote:
>
> Hi,
> I need to create a request/reply operation between a subscriber and a single
> publisher for intitalization.
> The publisher sends messages to topic X all the time.
> The subscriber first subscribes to topic X.
> To get additional data from the publisher a subscriber sends also a "request
> notification" to the publisher.
> I point the JMSReplyTo Header of the request to a temporary topic that
> should receive the reply.
>
> I use the temporary topic and not topic X to prevent other subscribers of
> topic X from receiving the reply (I cannot use a selector and IDs because
> all are pure topic subscribers of the same topic without selectors).
>
> In fact I have now two subscribers under the same session: one for the
> actual topic I am interest in and one for the temproary topic for the reply.
> My question is:  What ordering guarantees do I have for these two
> subscribers?
> If the publisher sends the notifications x1;reply;x2 will I first receive X1
> with the MessageListener of my topic X subscriber and then the reply with
> the MessageListener of my temporary topic subscriber?
> Or it is also possible that I receive X1 and X2 first and then the reply?

It depends on your code. If you have a single JMS producer which is
sending to the topic or the temporary topic, then your producer
decides the order. If you have more than one producer then they could
arrive in any order.


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message