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 6C7B310F82 for ; Wed, 25 Dec 2013 03:12:25 +0000 (UTC) Received: (qmail 45289 invoked by uid 500); 25 Dec 2013 03:12:24 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 45239 invoked by uid 500); 25 Dec 2013 03:12:17 -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 45229 invoked by uid 99); 25 Dec 2013 03:12:14 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Dec 2013 03:12:14 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 686C2894383; Wed, 25 Dec 2013 03:12:14 +0000 (UTC) From: gzurowski To: dev@camel.apache.org Subject: camel pull request: Only persist changes when no exceptions occurred. Content-Type: text/plain Message-Id: <20131225031214.686C2894383@tyr.zones.apache.org> Date: Wed, 25 Dec 2013 03:12:14 +0000 (UTC) GitHub user gzurowski opened a pull request: https://github.com/apache/camel/pull/79 Only persist changes when no exceptions occurred. Move session.save() call into try block, so no partial changes are persisted if any exceptions occur during component operations. Signed-off-by: Gregor Zurowski You can merge this pull request into a Git repository by running: $ git pull https://github.com/gzurowski/camel Fix-Session-Mgmt Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/79.patch ---- commit 516530b320f28b7389c447bc1eb2a842ff365d24 Author: Gregor Zurowski Date: 2013-12-25T03:04:32Z Only persist changes when no exceptions occurred. Move session.save() call into try block, so no partial changes are persisted if any exceptions occur during component operations. Signed-off-by: Gregor Zurowski ----