You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by DavidShaw <da...@gmail.com> on 2008/01/18 20:47:44 UTC
Publish and Subscribe
I've been looking at creating a queue that would support "publish and
subscribe". To be specific, I want to create a queue/topic, and when I send
a given message to it, multiple consumers that subsequently pull from the
queue will get that message, one copy per consumer.
Client 1 subscribes to queue X
Client 2 subscribes to queue X
Publisher 1 pushes message A to X
Publisher 2 pushes message B to X
Client 1 pulls, gets message A
Client 1 pulls, gets message B
Client 2 pulls, gets message A
Client 2 pulls, gets message B
I looked at this page:
http://activemq.apache.org/virtual-destinations.html
but I don't really see if I can solve this problem using it. I can think of
a workaround, but is it possible to do exactly the user story I described
above?
Thanks, I'm still trying to figure this out, but I think it will work for me
if I can.
--
View this message in context: http://www.nabble.com/Publish-and-Subscribe-tp14957768s2354p14957768.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Publish and Subscribe
Posted by Rob Davies <ra...@gmail.com>.
What you describe sounds just like normal publish/subscribe - am I
missing something?
On Jan 18, 2008, at 7:51 PM, DavidShaw wrote:
>
> I've been looking at creating a topic that would support "publish and
> subscribe". To be specific, I want to create a topic, and when I
> send a
> given message to it, multiple consumers that subsequently pull from
> the JMS
> will get that message, one copy per consumer.
>
> Client 1 subscribes to queue X
> Client 2 subscribes to queue X
>
> Publisher 1 pushes message A to X
> Publisher 2 pushes message B to X
>
> Client 1 pulls, gets message A
> Client 1 pulls, gets message B
> Client 2 pulls, gets message A
> Client 2 pulls, gets message B
>
> I looked at this page:
> http://activemq.apache.org/virtual-destinations.html
>
> but I don't really see if I can solve this problem using it. I can
> think of
> a workaround, but is it possible to do exactly the user story I
> described
> above?
>
> Thanks, I'm still trying to figure this out, but I think it will
> work for me
> if I can.
> --
> View this message in context: http://www.nabble.com/Publish-and-Subscribe-tp14957768s2354p14957768.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>