Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 45993 invoked from network); 14 Mar 2007 15:58:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 15:58:34 -0000 Received: (qmail 87606 invoked by uid 500); 14 Mar 2007 15:58:40 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 87586 invoked by uid 500); 14 Mar 2007 15:58:40 -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 87556 invoked by uid 99); 14 Mar 2007 15:58:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 08:58:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2007 08:58:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9F2B671407E for ; Wed, 14 Mar 2007 08:58:09 -0700 (PDT) Message-ID: <13636646.1173887889649.JavaMail.jira@brutus> Date: Wed, 14 Mar 2007 08:58:09 -0700 (PDT) From: =?utf-8?Q?Claus_K=C3=B6ll_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-769) Unable to login with two different Credentials to same workspace in one Transaction In-Reply-To: <26328297.1172563568650.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-769?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel#action_12480812 ]=20 Claus K=C3=B6ll commented on JCR-769: -------------------------------- I have not sayed that i have fixed the problem only with the fact of changi= ng the mapping between xid's and TransactionContexts. I thought that the semantic of joining XAResources to Global Transaction is= better then the one it is now. For me its clear that the process is not easy and maybe a long term but if you think its is not importand to identify the problems, ok let it be. > Unable to login with two different Credentials to same workspace in one T= ransaction > -------------------------------------------------------------------------= ---------- > > Key: JCR-769 > URL: https://issues.apache.org/jira/browse/JCR-769 > Project: Jackrabbit > Issue Type: Bug > Components: jca > Affects Versions: 1.2.1 > Environment: Websphere 5.1.1 J2C Adapter > Reporter: Claus K=C3=B6ll > Attachments: patch.txt, stacktrace.txt > > > I'm using the Jackrabbit 1.2.1 JCA adapter and trying to access in a Sess= ionBean-Method with Container Transaction a Workspace with 2 different Cred= entials.=20 > The Method takes about 400ms to finish but no commit on TransactionContex= tr occurs (Debugging ..) only the prepare was called 2 times . > The Container hangs on the PostInvoke Method about 5 seconds and then i g= et a "javax.transaction.xa.XAException"=20 > with the Warn Message: Transaction rolled back because timeout expired > The code .. > Context ctx =3D new InitialContext();=20 > Repository repository =3D (Repository) ctx.lookup("java:comp/env/jackrabb= it");=20 > Credentials credentials =3D new SimpleCredentials("user1", "password1".to= CharArray());=20 > Credentials credentials2 =3D new SimpleCredentials("user2", "password2".t= oCharArray());=20 > Session session1 =3D repository.login(credentials, "default");=20 > Session session2 =3D repository.login(credentials2, "default");=20 > Session1 adds a node to the workspace .. and with the session2 i do nothi= ng except the login ! > If i make no second login the Method works fine. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.