You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2013/09/01 10:23:49 UTC

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

Hi

No there is no wildcard support in the direct component. The intention
is that there is only one consumer per endpoint. If you have wildcard
supports then you may end up with multiple consumers matching a
wilcard pattern. The direct is intended for one consumer only per
endpoint.


On Sat, Aug 31, 2013 at 1:03 PM, apara <ap...@standardset.com> wrote:
> 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_
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Can-I-use-from-direct-abc-for-wildcard-routing-tp5738379.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen