Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 15412 invoked from network); 21 Feb 2011 19:28:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Feb 2011 19:28:06 -0000 Received: (qmail 47309 invoked by uid 500); 21 Feb 2011 19:28:06 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 46678 invoked by uid 500); 21 Feb 2011 19:28:03 -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 46359 invoked by uid 99); 21 Feb 2011 19:28:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Feb 2011 19:28:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Feb 2011 19:28:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0D2221B0949 for ; Mon, 21 Feb 2011 19:27:39 +0000 (UTC) Date: Mon, 21 Feb 2011 19:27:39 +0000 (UTC) From: "Andreas Zschorn (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <460472410.6410.1298316459050.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1306191818.6200.1298311180577.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (JCR-2901) JCR-2523 break the transaction handling in container managed environment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Zschorn updated JCR-2901: --------------------------------- Description: during the cleanup of an jcr-session an new internal session is created JCAManagedConnection in the method cleanup, this is supposed to fix JCR-2523, The sideeffect is, that the XA-Resource (variable-xaResource) in JCAManagedConnection is not anymore the same XASessionImpl Object like the session Object. Subsequent calls on this connection, lead that the internal session variable is not anymore informed about the current transaction context. (XAItemStateManager, variables tx and txLog are null), because only the xaResource is informed about the new transaction context. I attached a sample project which shows this behaviour. was: during the cleanup of an jcr-session an new internal session is created JCAManagedConnection cleanup, this is supposed to fix JCR-2523, The sideeffect is, that the XA-Resource (variable-xaResource) in JCAManagedConnection is not anymore the same XASessionImpl Object like the session Object. Subsequent calls on this connection, lead that the internal session variable is not anymore informed about the current transaction context. (XAItemStateManager, variables tx and txLog are null), because only the xaResource is informed about the new transaction context. I attached a sample project which shows this behaviour. > JCR-2523 break the transaction handling in container managed environment > ------------------------------------------------------------------------ > > Key: JCR-2901 > URL: https://issues.apache.org/jira/browse/JCR-2901 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-jca > Affects Versions: 2.1.3, 2.2.4 > Environment: Container managed transactions on jboss 4.2.3 with spring-jcr-modules > Reporter: Andreas Zschorn > Priority: Blocker > Labels: Transaction,, container, managed > Attachments: testproject.zip > > > during the cleanup of an jcr-session an new internal session is created JCAManagedConnection in the method cleanup, this is supposed to fix JCR-2523, The sideeffect is, that the XA-Resource (variable-xaResource) in JCAManagedConnection is not anymore the same XASessionImpl Object like the session Object. Subsequent calls on this connection, lead that the internal session variable is not anymore informed about the current transaction context. (XAItemStateManager, variables tx and txLog are null), because only the xaResource is informed about the new transaction context. > I attached a sample project which shows this behaviour. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira