Timer component (NOT STARTED) in RouteBuilder class but well in Spring XML config file ?

View: New views
3 Messages — Rating Filter:   Alert me  

Timer component (NOT STARTED) in RouteBuilder class but well in Spring XML config file ?

by cmoulliard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
My Blog : http://cmoulliard.blogspot.com/ 

Re: Timer component (NOT STARTED) in RouteBuilder class but well in Spring XML config file ?

by cmoulliard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
My Blog : http://cmoulliard.blogspot.com/ 

Re: Timer component (NOT STARTED) in RouteBuilder class but well in Spring XML config file ?

by cmoulliard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


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
My Blog : http://cmoulliard.blogspot.com/ 
LightInTheBox - Buy quality products at wholesale price
Need professional support or training for Apache Camel? Graphic Design by Hiram and the Nabble Forum configured by James