« Return to Thread: listen on multiple queues

Re: listen on multiple queues

by andrewk :: Rate this Message:

Reply to Author | View in Thread

it's implicit in the spec for the protocol if you look at the subscribe message - why else have this message if you can only subscribe to one destination?

I suspect the more you use stomp, the more stuff like this should become clear.
Good luck,

-Andrew
 

oh, thanks.  I didn't even know that you can subscribe to multiple destination.  I am using php and the lack of threading in php means I need to subscribe to multiple destinations.  

Where did you find that stomp allow multiple subscription?  The only info I can find on stomp is on codehause.  

thanks,

-john

andrewk wrote:
In stomp, you can subscribe to as many destinations as you want for your connection, simply send another subscribe message.
Am I missing something?

-Andrew Kuklewicz

delphi329 wrote:
Hi:

How do I subscribe to multiple queues?  E.g. have two queues, /queue/a/b/c and /queue/a/b/d and I want to listen to both of them?  Can I use selector on destination header?  

thanks,

 « Return to Thread: listen on multiple queues