camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine DESSAIGNE <antoine.dessai...@gmail.com>
Subject Re: Puzzler: Best NoOp route
Date Mon, 19 May 2014 20:18:49 GMT
By the way, you may not even have to define any <route> tags in your
<camelContext>

Antoine.
Le 19 mai 2014 22:08, "Antoine DESSAIGNE" <antoine.dessaigne@gmail.com> a
écrit :

> Hello.
>
> You can do the following thing :
>
> <route>
>     <from uri="direct:input" />
>     <to uri="direct:output" />
> </route>
>
> But I prefer being able to tell whether or not the route is properly
> starting but using the following route :
>
> <route>
>     <from uri="timer:single?repeatCount=1" />
>     <log message="I'm logging this" />
> </route>
>
> Hope this helps,
>
> Antoine.
> Le 19 mai 2014 21:35, "Camel Guy" <camel@devguy.com> a écrit :
>
>> Hello,
>>
>> I'm building a framework in Spring DSL and I need a route that does
>> nothing
>> (e.g., testing mode). Since a route has to do something (otherwise Spring
>> DSL fails), ?? below must be replaced by something.
>>
>> <route>
>>  <from uri="direct:NoOp"/>
>>
>> ??
>>
>> </route>
>>
>> I was using <transform><simple/></transform> but I recently discovered
>> that
>> <choice/> works.
>>
>> What could be put in ?? that has even less overhead?
>>
>>
>> Thank you!
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message