Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 68361 invoked from network); 5 Aug 2010 09:39:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Aug 2010 09:39:47 -0000 Received: (qmail 15584 invoked by uid 500); 5 Aug 2010 09:39:47 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 15344 invoked by uid 500); 5 Aug 2010 09:39:44 -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 15335 invoked by uid 99); 5 Aug 2010 09:39:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 09:39:43 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.158 is neither permitted nor denied by domain of zheka.prog@gmail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 09:39:37 +0000 Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ogwuy-0005TY-8x for users@camel.apache.org; Thu, 05 Aug 2010 02:39:16 -0700 Date: Thu, 5 Aug 2010 02:39:16 -0700 (PDT) From: unixployd To: users@camel.apache.org Message-ID: <1281001156265-2265086.post@n5.nabble.com> In-Reply-To: References: <1280948960970-2264524.post@n5.nabble.com> Subject: Re: Spring does not handle @Produce MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org The problem here is connected with Spring itself. I seems that spring creates one singleton of ProcessorProducer in his context, but when I try to create new instance in the route Spring doesn't handle this and instance is creating without any injection. Why I think so? When I wrote this class as singleton returning only one instance of it every time everything is ok, because when spring correctly injects everything and creates it in his context I can work with Producer successfully. Can it be? -- View this message in context: http://camel.465427.n5.nabble.com/Spring-does-not-handle-Produce-tp2264524p2265086.html Sent from the Camel - Users mailing list archive at Nabble.com.