You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cmoulliard <cm...@gmail.com> on 2008/07/18 12:30:34 UTC
Timer component (NOT STARTED) in RouteBuilder class but well in
Spring XML config file ?
Hi,
I'm confronted to a strange problem. The following route works well in
Spring XML configuration file but not in a RouteBuilder class ?
RouteBuilder class
from("timer://export")
.to("bean:myBean");
Remark : when ENABLE is activated in log.4j, I see that the component is
registered by Camel
<route>
<from uri="timer://export" />
<to uri="bean:myBean" />
</route>
Regards,
Charles Moulliard
-----
Enterprise Architect
Xpectis
12, route d'Esch
L-1470 Luxembourg
Phone +352 25 10 70 470
Mobile +352 621 45 36 22
e-mail : cmoulliard@xpectis.com
web site : www.xpectis.com
--
View this message in context: http://www.nabble.com/Timer-component-%28NOT-STARTED%29-in-RouteBuilder-class-but-well-in-Spring-XML-config-file---tp18526486s22882p18526486.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Timer component (NOT STARTED) in RouteBuilder class but well in
Spring XML config file ?
Posted by cmoulliard <cm...@gmail.com>.
I finally found an error.
When
getContext().addInterceptorStrategy(new Tracer());
is added in the RouteBuilder, then the timer does not work. I will create a
defect in JIRA.
Regards,
Charles Moulliard
cmoulliard wrote:
>
> Forget what I wrote. it works now.
>
> remark : it's time for me to go to holidays ;)
>
>
> cmoulliard wrote:
>>
>> Hi,
>>
>> I'm confronted to a strange problem. The following route works well in
>> Spring XML configuration file but not in a RouteBuilder class ?
>>
>> RouteBuilder class
>>
>> from("timer://export")
>> .to("bean:myBean");
>>
>> Remark : when ENABLE is activated in log.4j, I see that the component is
>> registered by Camel
>>
>> <route>
>> <from uri="timer://export" />
>> <to uri="bean:myBean" />
>> </route>
>>
>> Regards,
>>
>> Charles Moulliard
>>
>>
>
>
-----
Enterprise Architect
Xpectis
12, route d'Esch
L-1470 Luxembourg
Phone +352 25 10 70 470
Mobile +352 621 45 36 22
e-mail : cmoulliard@xpectis.com
web site : www.xpectis.com
--
View this message in context: http://www.nabble.com/Timer-component-%28NOT-STARTED%29-in-RouteBuilder-class-but-well-in-Spring-XML-config-file---tp18526486s22882p18528603.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Timer component (NOT STARTED) in RouteBuilder class but well in
Spring XML config file ?
Posted by cmoulliard <cm...@gmail.com>.
Forget what I wrote. it works now.
remark : it's time for me to go to holidays ;)
cmoulliard wrote:
>
> Hi,
>
> I'm confronted to a strange problem. The following route works well in
> Spring XML configuration file but not in a RouteBuilder class ?
>
> RouteBuilder class
>
> from("timer://export")
> .to("bean:myBean");
>
> Remark : when ENABLE is activated in log.4j, I see that the component is
> registered by Camel
>
> <route>
> <from uri="timer://export" />
> <to uri="bean:myBean" />
> </route>
>
> Regards,
>
> Charles Moulliard
>
>
-----
Enterprise Architect
Xpectis
12, route d'Esch
L-1470 Luxembourg
Phone +352 25 10 70 470
Mobile +352 621 45 36 22
e-mail : cmoulliard@xpectis.com
web site : www.xpectis.com
--
View this message in context: http://www.nabble.com/Timer-component-%28NOT-STARTED%29-in-RouteBuilder-class-but-well-in-Spring-XML-config-file---tp18526486s22882p18527951.html
Sent from the Camel - Users mailing list archive at Nabble.com.