Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 51788 invoked from network); 10 Dec 2009 12:58:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 12:58:31 -0000 Received: (qmail 74168 invoked by uid 500); 10 Dec 2009 12:58:30 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 74132 invoked by uid 500); 10 Dec 2009 12:58:30 -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 74121 invoked by uid 99); 10 Dec 2009 12:58:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 12:58:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tmueller@day.com designates 207.126.148.89 as permitted sender) Received: from [207.126.148.89] (HELO eu3sys201aog103.obsmtp.com) (207.126.148.89) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 10 Dec 2009 12:58:21 +0000 Received: from source ([209.85.222.185]) by eu3sys201aob103.postini.com ([207.126.154.11]) with SMTP ID DSNKSyDwV7H70ZsAEis9+oheLJRRWw0euMKF@postini.com; Thu, 10 Dec 2009 12:58:01 UTC Received: by pzk15 with SMTP id 15so3948105pzk.3 for ; Thu, 10 Dec 2009 04:57:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.141.89.3 with SMTP id r3mr1258936rvl.283.1260449878737; Thu, 10 Dec 2009 04:57:58 -0800 (PST) In-Reply-To: References: <1260443904318-956875.post@n4.nabble.com> Date: Thu, 10 Dec 2009 13:57:58 +0100 Message-ID: <91f3b2650912100457w53874000l120bd64ebafde292@mail.gmail.com> Subject: Re: Repository lock From: =?ISO-8859-1?Q?Thomas_M=FCller?= To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, See also http://wiki.apache.org/jackrabbit/RepositoryLock Regards, Thomas On Thu, Dec 10, 2009 at 12:23 PM, Alexander Klimetschek wrote: > On Thu, Dec 10, 2009 at 12:18, anand wrote: >> I' m using jackrabbit1.5.6. and tried to start repository from my code. >> Whenever i tried to start it using code then Repository lock comes in >> between. >> >> javax.jcr.RepositoryException: The repository home >> /home/sda_tr1/Desktop/simer/apache-tomcat-6.0.20/bin/jackrabbit appears = to >> be already locked by the current process. > > This means that there is already a repository running and using the > same repository home. The lock is required, because only one > repository instance can access the same repository home directory at a > time. > >> I tired to delete file .lock within jackrabbit then it was fine but from >> last few hours i' m not able run repository even if i delete this .lock >> file. > > You should find what already starts the repository. This depends on > what you are using - the standalone or webapp distributions already > provide automatically stared repositories. Deleting the lock file > manually is normally only necessary if the repository crashed and left > the lock file behind. > >> Some similar files are created within the versions folder and within >> workspace folder(default, security) of jackrabbit. >> >> Is there any method using which i access the repository using code witho= ut >> lock? >> like =A0isLock(), or something like that. > > As this is a vital mechanism, it is completely transparent and not > exposed by the implementation. > > Regards, > Alex > > -- > Alexander Klimetschek > alexander.klimetschek@day.com >