activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: Topics, Consumers and Web Session
Date Tue, 06 Apr 2010 08:34:33 GMT

this sounds similar to this

will take a look at it.

Dejan Bosanac -

Open Source Integration -
ActiveMQ in Action -
Blog -

On Mon, Apr 5, 2010 at 2:23 AM, niccotnt77 <> wrote:

> Hello,
> I'm using Active-MQ with AJAX for displaying messages coming from a topic.
> A
> producer is correctly sending message topic://test and a consumer is
> reading
> from it and displays messages on a web page.
> When I open two or more consumers on a single web page, or on multiple
> pages
> within the same session I get a strange behavior. I expected a broadcast of
> the messages to all the listening consumers, but what I see is some sort of
> distribution of messages between them.
> I went deeply inside the code and I noticed that the destination is tied to
> one and only one consumer inside the session. Some questions:
> 1. how can I get more instances of a consumer for a specific topic, during
> the same session?
> 2. if it's not possible, how can I assign a different session every time i
> POST a 'listen' command?
> I think the concept of 1-consumer per session is correct applied to an
> application environment where i can create as many sessions as I like...
> but
> applied to the web, it gets confusing. I think web session are very
> different from JMS sessions, they have only the name in common. I think we
> should tie the consumer to another kind of "session", maybe the listener
> id,
> or a tag inside the request.
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message