This content has been marked as final.
Show 1 reply
-
1. Re: Stomp and temporary topics / queues
davestanley Jan 11, 2010 11:44 AM (in response to julian)Hi Julian
You want to use a Topic, so both users will get the same message from your producer.
In terms of how you implement the consumer side, its not 100% clear if both users should get the same message? but either way you have two choices:
1) Use a topic per userid, so only messages for that user go to the TOPIC. If you want to use this approach you may need to use the nio transport and a destination policy with optimizedDispatch enabled to scale to large numbers of users.
2) Use a single topic but use jms selectors to filter just the messages your interested in (by userid or sessionid)
Hope this helps
/Dave