How to use wildcards and variable substitution in activemq camel routes
- by sicotron
I would like to set up a generic camel route that routes all messages to a set of queues to a queue with the same name and a suffix. I'm thinking it would look something like this:
<camelContext id="camel" trace="false" xmlns="http://camel.apache.org/schema/spring">
<route id="genericRoute">
<from uri="activemq:queue:somequeues.*" />
<to uri="${getMyQueueName}.moo" />
</route>
</camelContext>
activemq talks about wildcards here: http://activemq.apache.org/wildcards.html but nothing more that I can find.
This may not even be possible but would be very handy if it is!
Thanks,