Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16AF611538 for ; Wed, 21 May 2014 05:47:30 +0000 (UTC) Received: (qmail 23378 invoked by uid 500); 21 May 2014 05:47:29 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 23329 invoked by uid 500); 21 May 2014 05:47:29 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 23321 invoked by uid 99); 21 May 2014 05:47:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2014 05:47:29 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-ig0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2014 05:47:27 +0000 Received: by mail-ig0-f180.google.com with SMTP id c1so1709097igq.13 for ; Tue, 20 May 2014 22:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=PdQiOAdtv2oQsSSMefTmgQqAlwf7OvQkHUwggZqNgZU=; b=rQZ5Nlib3g9zMqTYsYa+OcyhhvojNR1xmbeOvRDE15hqLhWiAjKrpI65/8/69R2Nc/ AjOEA8JulnWxm9F9A9bHsnisWs5iBkbXsrMTiibpmCVBoKIUcvwzRYj39Vp3xAsGCZCJ uHPLg48WOiBJVogOjNxswTI4TjIKT9SEWUWVPkhDjO0nBmK/+yEeJJua5xYHHW75bBxS vQXSsiHmDXBO/NSyqtZB4bjy4GwANpfVlIy3b1r8CjrRS6LjSi8fTZ5Fa3sJSkU7hQ/c WOaPRAUIucOt6JsTSiZQ7NegiJ6bw64QK5KFLk3objlyiOx8XazYYitrLXdrfjHObI2C 20iw== X-Received: by 10.42.109.8 with SMTP id j8mr55444icp.89.1400651223692; Tue, 20 May 2014 22:47:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.93.67 with HTTP; Tue, 20 May 2014 22:46:43 -0700 (PDT) In-Reply-To: <1400575757196-5751335.post@n5.nabble.com> References: <1400575757196-5751335.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 21 May 2014 07:46:43 +0200 Message-ID: Subject: Re: beanRef is caching instances in camel 2.13.0 - unwanted behavior To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi 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 > https://issues.apache.org/jira/browse/CAMEL-6725 > 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: http://camel.465427.n5.nabble.com/beanRef-is-caching-instances-in-camel-2-13-0-unwanted-behavior-tp5751335.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/