Routing an ActiveMq topic to an external broker.
Posted
by chillitom
on Stack Overflow
See other posts from Stack Overflow
or by chillitom
Published on 2010-03-31T09:56:11Z
Indexed on
2010/03/31
10:43 UTC
Read the original article
Hit count: 493
activemq
|apache-camel
Hi All,
I have an ActiveMq topic which I wish to transform and share with an external broker. At present I have the following which performs the transformation:
<camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="activemq:topic:OriginalTopic"/>
<to uri="xslt:file:///xslt/transformation.xsl"/>
<to uri="activemq:topic:NewTopic"/>
</route>
</camelContext>
However this just sends the message to the current broker network. I'd like to pass the NewTopic messages to an external broker only. I don't want to join the external broker using a <networkConnector .. > as only this topic should be send to the external broker and no others.
Is there a simple way to route messages to an external broker?
Many thanks.
© Stack Overflow or respective owner