Claus Ibsen-2 wrote:
>
> I think you have the from topic as a JMSDestination header on the message.
> But I havent checked
>
> Destination topic = exchange.getIn().getHeader("JMSDestination",
> Destination.class);
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
>
Excellent! That's exactly what I need. However, I'm a little at a loss as to
how to get the "exchange" instance, and then use a method on that within the
Xml configuration for ActiveMQ. Can I just use JUEL, something like:
<route>
<from uri="messages.*"/>
<to uri="queue.${in.headers.JMSDestination}"/>
</route>
If this works, I'd also like to strip off the "topic://" at the front of the
JMSDestination. Can I do this with a substring() call, like this?
...
<to uri="queue.${in.headers.JMSDestination.substring(8)}"/>
...
Thanks!
--
View this message in context:
http://www.nabble.com/Dynamic-uri-in-%3Cto%3E-uri%2C-derived-from-%3Cfrom%3E-uri-tp26017552p26026377.html
Sent from the Camel - Users mailing list archive at Nabble.com.