camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: beanRef is caching instances in camel 2.13.0 - unwanted behavior
Date Wed, 21 May 2014 05:46:43 GMT

And your beanRef you refer to is a FQN class name (not a bean id in a
spring xml file or something) and you want a new instance of that FQN
class to be created each time (eg prototype scoped) and therefore want
cache disabled?

And what you see in Camel 2.13.x is that its no longer prototype scoped?

Is that correct?

On Tue, May 20, 2014 at 10:49 AM, cgiera <> wrote:
> Hello,
> I've upgraded our application from camel 2.11.0 to camel 2.13.0.
> First all looked fine, but now we are facing huge problems with all our
> processes.
> All our routes are caching the instances of our beans now, so we have a lot
> of unwanted behavior in our application.
> I've found an improvement point in jira
> which introduces the possibility of caching the instances. The documentation
> says that it's defaulted to no, but even if i change our routes from
> beanRef("classNameAsString","methodNameAsString") to
> beanRef("classNameAsString","methodNameAsString", false) the instances of
> the bean still get cached.
> Could someone please check if my assumptions are correct and also has the
> same behavior(then I think there is a bug)?
> kind regards,
> Christoph
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message