On Thu, Oct 22, 2009 at 11:30 PM, chris.pond <chris.p...@bt.com> wrote: > > I'm trying to take JMS messages inside the ActiveMQ broker from a topic > pattern, say "messages.*", and map them to a corresponding JMS queue, say > "queue.${from.topic}" (where ${from.topic} is the topic of the JMS message). > I can't seem to find an easy way to do this. Am I missing something? > I'm looking for something like this: > > <route> > <from uri="messages.*"/> > <to uri="queue.${from.topic}"/> > </route> > > Thanks for any and all help!
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); > -- > View this message in context: > http://www.nabble.com/Dynamic-uri-in-%3Cto%3E-uri%2C-derived-from-%3Cfrom%3E-uri-tp26017552p26017552.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- 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