0
votes

I am in the process of developing a message router which has a bunch of routes that are started and stopped at runtime based some certain conditions.

By default all these routes are configured with auto-starup=false

Now I am trying to add transactional support to these routes and it seems that you cannot define a transacted route and control the its startup behavior at the same time. This is because RouteDefinition.transacted() returns a TransactedDefinition instance which does not have an autoStartup(boolean autoStartup) method.

I am sure I am not the only one to need this kind of functionality and just wondering what is the camel way of addressing such requirements.

Thank you in advance for your inputs

1

1 Answers

0
votes

Maybe just set autoStartup first, eg

from("direct:start").autoStartup(false)
    .transacted()
    .to("mock:result");