Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-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 B7AE0DD3A for ; Tue, 6 Nov 2012 07:22:14 +0000 (UTC) Received: (qmail 18361 invoked by uid 500); 6 Nov 2012 07:22:14 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 18078 invoked by uid 500); 6 Nov 2012 07:22:14 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 18041 invoked by uid 99); 6 Nov 2012 07:22:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 07:22:13 +0000 Date: Tue, 6 Nov 2012 07:22:12 +0000 (UTC) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <290317182.73111.1352186532942.JavaMail.jiratomcat@arcas> In-Reply-To: <1962867109.18332.1331805100134.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-3258) JTA & BundleDbPersistenceManager in autocommit mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491266#comment-13491266 ] Jukka Zitting commented on JCR-3258: ------------------------------------ We need autocommit since Jackrabbit is using long-lived database connections. Without autocommit we'd have to add an explicit COMMIT statement even after each SELECT query as otherwise databases with high transaction isolation levels would have to keep a transaction open potentially indefinitely. > JTA & BundleDbPersistenceManager in autocommit mode > --------------------------------------------------- > > Key: JCR-3258 > URL: https://issues.apache.org/jira/browse/JCR-3258 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 2.4 > Environment: Postgresql 8.4 > BTM 2.1.2 > Jencks 2.0 > Reporter: YP > Priority: Blocker > Attachments: jca.log, non-jca.log > > > Neither JTA nor JCA with JTA works because of the exception 'java.sql.SQLException: autocommit is not allowed on a resource enlisted in a global transaction' from BTM, > issue JCR-1253 has explanation of why keep autocommit enabled, but there is always error when autocommit mode is true. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira