Hi all, I have a route definition like so
RouteDefinition myRoute = (RouteDefinition) from(...).routeId(MY_ROUTE) .transacted() ...; myRoute.setAutoStartup("false"); I'd like to NOT have this route automatically start -- and there is RouteDefinition.setAutoStartup for that. However, adding that transacted() makes the chained method call actually an instance of PolicyDefinition. This will cause a ClassCastException when I try to cast it to RouteDefinition. What's the deal with this? I'm defining the route in the RouteBuilder.configure method. Also, trying getContext().getRouteDefinition(MY_ROUTE) at the end of the method will not help since at this point it will always return null. What can I do to have the route transactional and not auto-started? Thanks, Lunchbox -- View this message in context: http://camel.465427.n5.nabble.com/RouteDefinition-setAutoStartup-PolicyDefinition-ClassCastException-tp4578805p4578805.html Sent from the Camel - Users mailing list archive at Nabble.com.