activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: DESIGN GUIDANCE PLEASE: Initial Set of Messages followed by Incremental Messages
Date Thu, 29 Mar 2007 07:49:13 GMT
This sounds like request-response; the only difference is after the
clients initial request, there are multiple responses over time
(initial ones then incremental ones)...

namely clients have their own temporary queue.

If the incremental responses are actually common to many clients (e.g.
you are sending out price changes as deltas, but each client needs to
know the current initial data first before they can understand the
deltas) then you can use a topic for the responses and use a custom
hook in the subscription recovery policy...

See QueryBasedSubscriptionRecoveryPolicy

where you supply your own MessageQuery to provide a clients initial
set of messages...

On 3/28/07, sparky2708 <> wrote:
> Hi,
>    I am looking for suggestions/example code on how to do the following:
> (1) On client startup my service would Initially push out some messages to
> the client
> (2) Push out incremental messages to client when responding to some other
> message that I receive
> So for (1) I was thinking I would need the client to send a message
> indicating a request for the initial state. I was thinking that at that
> point I would create some queue and tell the client to subscribe to messages
> in that queue (I would have to make that queue unique somehow. Any ideas?).
> The client would subscribe to the incremental updates at that point so no
> incremental messages are missed. I would then push out the intitial messages
> and then the incremental ones.
> Is there an easy way to do this? Are there any examples of how I can do
> this?
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at



View raw message