How to use wildcards and variable substitution in activemq camel routes

Posted by sicotron on Stack Overflow See other posts from Stack Overflow or by sicotron
Published on 2014-05-28T21:23:35Z Indexed on 2014/05/28 21:25 UTC
Read the original article Hit count: 315

Filed under:
|

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,

© Stack Overflow or respective owner

Related posts about apache-camel

Related posts about activemq