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 3DC0618950 for ; Tue, 5 Jan 2016 21:18:54 +0000 (UTC) Received: (qmail 30366 invoked by uid 500); 5 Jan 2016 21:18:53 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 30321 invoked by uid 500); 5 Jan 2016 21:18:53 -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 30310 invoked by uid 99); 5 Jan 2016 21:18:53 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2016 21:18:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CD6841804C7 for ; Tue, 5 Jan 2016 21:18:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id TKVByQJ4EoCd for ; Tue, 5 Jan 2016 21:18:43 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id A91C42305F for ; Tue, 5 Jan 2016 21:18:43 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 271CD1D799EE for ; Tue, 5 Jan 2016 13:16:42 -0800 (PST) Date: Tue, 5 Jan 2016 14:18:43 -0700 (MST) From: SaurabhNayar To: users@camel.apache.org Message-ID: <1452028723273-5775857.post@n5.nabble.com> In-Reply-To: <1451980379368-5775783.post@n5.nabble.com> References: <1450688101393-5775308.post@n5.nabble.com> <1451939133712-5775768.post@n5.nabble.com> <1451980379368-5775783.post@n5.nabble.com> Subject: Re: entity manager is injected as null in a camel bean but jpa: endpoint works fine MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit The EntityManager will not automatically join the transaction by using @Transactional annotation. You will have to write your transaction management code - and make entity manager participate in the transaction. Kind of beats the purpose of using Camel - if you have to take all that pain. -- View this message in context: http://camel.465427.n5.nabble.com/entity-manager-is-injected-as-null-in-a-camel-bean-but-jpa-endpoint-works-fine-tp5775308p5775857.html Sent from the Camel - Users mailing list archive at Nabble.com.