Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Can I use from ="direct:abc*" for wildcard routing...

$
0
0
I am building a routing to URI based on the name of class's package:

<camel:route>
<camel:from uri="direct://start/event" />

<camel:recipientList>
<camel:simple resultType="java.lang.String">
direct://start/event/${in.body.class.package.name}
</camel:simple>
</camel:recipientList>
</camel:route>

Later, I want to create a wildcard route that looks something like this:

<camel:route>
<camel:from uri="direct://start/event/com.mycompany.mypackage.*"
/>

In other words I want to route everything that's inside
com.mycompany.mypackage. to a specific route.

Is this possible? Can I use wildcards with direct: or is there a better
option?

Thanks.
-AP_

Viewing all articles
Browse latest Browse all 5648

Trending Articles