You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by David Crisp <da...@yahoo.com> on 2008/07/16 17:46:05 UTC
Using a topic for RPC-style requests
Hi,
Our application sends RPC-like requests over the bus to a set of remote
instances.
We create a temporary queue and embed it in the outgoing request using
Message.setReplyTo(tempQ).
Is there a way to accomplish this using topics & selectors? Has anyone
played with this and if so,
how did it perform? I'd like to use multicast transport but I believe
that's only supported for topics.
Thanks in advance,
D.
--
View this message in context: http://www.nabble.com/Using-a-topic-for-RPC-style-requests-tp18490481p18490481.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Using a topic for RPC-style requests
Posted by James Strachan <ja...@gmail.com>.
2008/7/16 David Crisp <da...@yahoo.com>:
>
> Hi,
>
> Our application sends RPC-like requests over the bus to a set of remote
> instances.
> We create a temporary queue and embed it in the outgoing request using
> Message.setReplyTo(tempQ).
> Is there a way to accomplish this using topics & selectors?
If the replyTo queue is a temporary destination, you don't need
selectors other than if you want to traffic shape your servers.
> Has anyone
> played with this and if so,
> how did it perform?
Sure - pretty well.
> I'd like to use multicast transport but I believe
> that's only supported for topics.
BTW normally you'd wanna use queue so only one server responds to your
operation & you'd want load balancing across your servers; not every
server to do the same thing.
To see how to add JMS based remoting easily see...
http://activemq.apache.org/camel/spring-remoting.html
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com