Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 72637 invoked from network); 6 May 2006 18:46:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2006 18:46:37 -0000 Received: (qmail 88648 invoked by uid 500); 6 May 2006 18:46:37 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 88630 invoked by uid 500); 6 May 2006 18:46:36 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 88621 invoked by uid 99); 6 May 2006 18:46:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 May 2006 11:46:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [213.250.81.202] (HELO mbox1.netikka.net) (213.250.81.202) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 May 2006 11:46:36 -0700 Received: from mbox1-vams.netikka.net (mbox1 [127.0.0.1]) by mbox1-scanned.netikka.net (Postfix) with SMTP id 0F393270607 for ; Sat, 6 May 2006 21:46:15 +0300 (EEST) Received: from tyohuone (cf41.netikka.fi [213.250.119.41]) by mbox1.netikka.net (Postfix) with SMTP id EB630270607 for ; Sat, 6 May 2006 21:46:14 +0300 (EEST) Message-ID: <002d01c6713d$5f549400$0300a8c0@tyohuone> From: "Mikko Peltonen" To: Subject: Node (un)locking in transaction Date: Sat, 6 May 2006 21:46:23 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi All, I'm having problems to get Node.unlock() to work under a different session and transaction from the session/transaction under which the Node was locked. I've been trying to transfer the lock token between transactions/sessions but Node.unlock() always throws LockException "Node not locked by this session" in XAEnvironment's unlock method. Looking into the source of XAEnvironment, the addLockToken() method's implementation is empty: /** * Add lock token to this environment. * @param lt lock token */ public void addLockToken(String lt) { } And if I understood correctly after a quick look into the source, Session.addLockToken() gets delegated to this method when we are under transaction. Am I missing something here, or doesn't addLockToken work under transactions? Can I lock a node under transaction/session A and then unlock it under transaction/session B and how? Regards, Mikko