Ok, I finally found it.

What CronScheduledRoutePolicy does is suspend the route and activate it in
the scheduled time, so all I needed to do is suspending the route in my
rollback method like this:

consumerEndopint.getCamelContext().suspendRoute("myRoute");

Since in the rollback method I receive the consumer and the endpoint, I was
thinking that it was one of them that should to be suspended, when actually
the route was the one.

Again, thank you very much for your help.
Bruno.

--
View this message in context: 
http://camel.465427.n5.nabble.com/File2-endpoint-issue-tp5644759p5652489.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to