Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DDD9BDA36 for ; Wed, 3 Oct 2012 19:21:30 +0000 (UTC) Received: (qmail 24398 invoked by uid 500); 3 Oct 2012 19:21:30 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 24369 invoked by uid 500); 3 Oct 2012 19:21:30 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 24361 invoked by uid 99); 3 Oct 2012 19:21:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 19:21:30 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qa0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 19:21:25 +0000 Received: by qabg24 with SMTP id g24so2001169qab.11 for ; Wed, 03 Oct 2012 12:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=EHMClR/Dh+cRS00sHP+vx2Njcr89vog990HLkkTvZiU=; b=WvlrEfpVB+kLZQWzx7pbmh4jawesiA2xaRBFWuV3kg5jpBIlTjptC/RSh9v1NGz3l+ +oM/xYECRtyiIF7+ZcO5/EwJnOzFyktDOZDAY1IGrAi3SuusjmU7etjhdgFd9FpcEheC CAZFD58zS7VfPteC1MesODMx8VSDgCH1hJV3HKpRpKqCpaibMBGiQD8UsuWEulPbzHxw atPxxfNukXZJG5eor9gWmIpmFEYxAUd54KqbgZfZbRN/42TzPB2Y3rtBOKG9iH9ngYGe y8k5sgyzxJMQqqUespNd+KkBFhkPqYi5T7MoZRbaldKDUdeDZh5bbBCVjNLE+6frJ/+X UpHA== MIME-Version: 1.0 Received: by 10.224.181.198 with SMTP id bz6mr8788183qab.97.1349292064592; Wed, 03 Oct 2012 12:21:04 -0700 (PDT) Received: by 10.49.63.9 with HTTP; Wed, 3 Oct 2012 12:21:04 -0700 (PDT) Received: by 10.49.63.9 with HTTP; Wed, 3 Oct 2012 12:21:04 -0700 (PDT) In-Reply-To: <1349274550706-5720484.post@n5.nabble.com> References: <1349274550706-5720484.post@n5.nabble.com> Date: Wed, 3 Oct 2012 21:21:04 +0200 Message-ID: Subject: Re: Two routes, two transactions From: =?ISO-8859-1?Q?Christian_M=FCller?= To: dev@camel.apache.org Content-Type: multipart/alternative; boundary=20cf303b3eb335532a04cb2c8a7b X-Virus-Checked: Checked by ClamAV on apache.org --20cf303b3eb335532a04cb2c8a7b Content-Type: text/plain; charset=ISO-8859-1 Also use PROPAGATION_REQUIRED for your second route. Best, Christian Sent from a mobile device Am 03.10.2012 16:35 schrieb "lolo" : > I'm having two routes, first route defined with > transacted("PROPAGATION_REQUIRED"), second route defined with > transacted("PROPAGATION_REQUIRES_NEW"). > Route 1 is calling route 2. > I'm persisting entities in route 1 that I would like to update in route 2. > At the moment I'm getting the following exception in route 2: > javax.persistence.EntityNotFoundException when I try to update the entity > created in route 1. > This is because they are part of two different transactions. > Is there any way to achieve that? > How can I persist the entities in route 1 so that they are visible in route > 2 eventhough they are different transactions? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Two-routes-two-transactions-tp5720484.html > Sent from the Camel Development mailing list archive at Nabble.com. > --20cf303b3eb335532a04cb2c8a7b--