Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 80651 invoked from network); 14 Mar 2007 17:15:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 17:15:48 -0000 Received: (qmail 21075 invoked by uid 500); 14 Mar 2007 17:15:39 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 20972 invoked by uid 500); 14 Mar 2007 17:15:39 -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 20952 invoked by uid 99); 14 Mar 2007 17:15:38 -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 10:15:38 -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 10:15:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8600D71407C for ; Wed, 14 Mar 2007 10:15:09 -0700 (PDT) Message-ID: <23286325.1173892509546.JavaMail.jira@brutus> Date: Wed, 14 Mar 2007 10:15:09 -0700 (PDT) From: "Dominique Pfister (JIRA)" 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_12480844 ]=20 Dominique Pfister commented on JCR-769: --------------------------------------- > I have not sayed that i have fixed the problem only with the fact of chan= ging the mapping between xid's and TransactionContexts.=20 Sorry, I just thought I wasn't clear enough in my previous posts about why = changing the mapping between XIDs and TransactionContexts is not the main i= ssue. > I thought that the semantic of joining XAResources to Global Transaction = is better then the one it is now.=20 An XAResoruce in jackrabbit currently maps 1-1 to a XASessionImpl which rep= resents the user or better: the changes made by one user. Of course, one co= uld also map an XAResource to all changes made inside a global transaction = (including all branches) but that still leaves the problem of integrating a= ll changes made by all users in that transaction. > For me its clear that the process is not easy and maybe a long term but i= f you think its is not importand to identify the problems, ok let it be. Sorry for having made that impression. You're right, there must be some sem= antics to let jackrabbit identify that two branches actually belong to the = same transaction, but again, I still consider merging multiple updates made= by different users to be the main issue. > 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.