Yes they are created only once.
On Mon, Aug 8, 2016 at 3:30 AM, Brad Johnson <brad.john...@mediadriver.com> wrote: > Just wanted to verify that my understanding is correct here. Since I'm > switching from XML to Java DSL I want to verify that when I do something > like this in the configure() method: > > .filter().method(POValidator.class) > .bean(POEnricher.class) > > It is only instantiating that once. It isn't creating a new bean every > time the route is invoked. Since I'm used to injecting these from XML and > not making static references to the classes like this I want to make sure > these are the equivalent of a bean being instantiated in a Spring or > Blueprint XML file and then injected into the the route in a <camelContext> > and not a request scoped bean. > > Brad -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2