[jboss-user] [JBoss Messaging] - Re: Clustered messages not being received by external client

timfox do-not-reply at jboss.com
Tue Jul 21 04:22:19 EDT 2009


If you have a queue called "responseQueue" deployed on each of your nodes, how can JBoss Messaging possibly know which actual version of responseQueue on what node to send the response to? JBM is not psychic ;)

It can't, you simply haven't given it enough information.

The proper way of implementing this pattern is to implement a temporary response queue which will have a unique name across the cluster, then when you send a response to it from any other node, JBM will unambiguously know where to route it, otherwise it has no idea which node to route it to.

Alternatively you can create a response topic and consume responses with a selector (response_id=X). Either way will work.

BTW There are tests in the test suite for this.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244843#4244843

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244843



More information about the jboss-user mailing list