Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 21894 invoked from network); 16 Nov 2010 07:51:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 07:51:57 -0000 Received: (qmail 79880 invoked by uid 500); 16 Nov 2010 07:52:28 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 79820 invoked by uid 500); 16 Nov 2010 07:52:28 -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 79811 invoked by uid 99); 16 Nov 2010 07:52:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 07:52:27 +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: local policy) Received: from [194.172.26.33] (HELO MX1.aeb.de) (194.172.26.33) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 07:52:21 +0000 X-IronPort-AV: E=Sophos;i="4.59,204,1288566000"; d="scan'208";a="6325412" Received: from unknown (HELO S-HQMX7.pmbelz.de) ([10.237.5.7]) by MX1I.pmbelz.de with ESMTP; 16 Nov 2010 08:52:00 +0100 Received: from S-HQMX7.pmbelz.de ([fe80::c4b6:4b67:cd89:2050]) by S-HQMX7.pmbelz.de ([fe80::c4b6:4b67:cd89:2050%15]) with mapi; Tue, 16 Nov 2010 08:52:00 +0100 From: "Seidel. Robert" To: "users@jackrabbit.apache.org" Date: Tue, 16 Nov 2010 08:51:59 +0100 Subject: AW: Multiple instances of repository Thread-Topic: Multiple instances of repository Thread-Index: AcuFYH3L7Fi2pRn8RfOrnn/Kfiz93gAAUEoQ Message-ID: References: <2DD29CC841489C44A6E38A6CA5D4BB270D75C5F034@emcexc-02> In-Reply-To: <2DD29CC841489C44A6E38A6CA5D4BB270D75C5F034@emcexc-02> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Nikhil, if you want to use clustering, you have to define a repository home for eac= h cluster.=20 Clustering is necessary, if you want to have the same data/indexes at all c= luster nodes - the key word is synchronization. If your instances and the repositories operate separately from each other, = you don't need clustering. Separate repository homes, data stores and persi= stence managers will do the job. Kindly regards, Robert -----Urspr=FCngliche Nachricht----- Von: nikhil.agrawal@emeter.com [mailto:nikhil.agrawal@emeter.com]=20 Gesendet: Dienstag, 16. November 2010 08:33 An: users@jackrabbit.apache.org Betreff: Multiple instances of repository Hi, I am using jackrabbit as JCR implementation in my project. I am running jac= krabbit with in my application in the same jvm. The application read the content from repository and also writes some conte= nt in repository. There could be multiple concurrent instances of my application running on t= he same or different machines. I have a configuration file for jackrabbit and I have a single repository h= ome for jackrabbit. Now as soon as one instance of the application is up and running, I can't r= un the other instance as the first instance creates a lock file in reposito= ry home. After doing some search I came to know about running the jackrabbit in clus= tered mode. Now my question is even in this case I will have to specify a different rep= ository home for every run, right? That means I should form the repository home path at the run time because a= t compile time I am not sure how many instance will be run. This is a standalone java application and theoretically n number of instanc= e can be run. My question is when I have to specify a different repository path for every= run, then the jackrabbit will work even with out clustering? Because .lock file will be different for different runs as the repository h= ome is different. I know I am missing something here, please help me. I am attaching my conf file with this mail. Thanks, Nikhil