Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 27029 invoked from network); 5 Jul 2006 11:39:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 11:39:12 -0000 Received: (qmail 82733 invoked by uid 500); 5 Jul 2006 11:39:11 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 82530 invoked by uid 500); 5 Jul 2006 11:39:10 -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 82516 invoked by uid 99); 5 Jul 2006 11:39:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 04:39:10 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jukka.zitting@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 04:39:09 -0700 Received: by nf-out-0910.google.com with SMTP id n28so871699nfc for ; Wed, 05 Jul 2006 04:38:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gsEkWZGfUMgySEFJXbcrlYj1Gur+5+ogFL4apn1+CS7MRN0suFq/nmgAohAxM4fUE2gA8z2hVOWBuHXcdagRuL0L0tdQLIjAKFi4knnQ7hbiRS9td35B52zMEWGr559xoNRa/8hJ+Gl2Z/lglhSOs9yljC5V7jMJz5/Aar3ARBc= Received: by 10.78.151.15 with SMTP id y15mr3410737hud; Wed, 05 Jul 2006 04:38:47 -0700 (PDT) Received: by 10.78.34.10 with HTTP; Wed, 5 Jul 2006 04:38:47 -0700 (PDT) Message-ID: <510143ac0607050438wddc2e2eo92129c1df6d2022e@mail.gmail.com> Date: Wed, 5 Jul 2006 14:38:47 +0300 From: "Jukka Zitting" To: dev@jackrabbit.apache.org Subject: Re: Config file and launch backup In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <510143ac0607040042kec8fa2flceabd85858ce3206@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, On 7/5/06, Nicolas Toper wrote: > In our earlier chat today, you used a method from RepositoryImpl create with > two arguments: RepositoryImpl.create("repo.xml", "repo/"); I don't find it > in the Javadoc nor in the code. What is the correct way to instantiate the > right Repository providing I have all params? Sloppy writing on my part. There's a RepositoryImpl.create(RepositoryConfig) method that takes a RepositoryConfig instance that you can create with a RepositoryConfig.create("repo.xml", "repo/") call: RepositoryCofnig config = RepositoryConfig.create("...", "..."); RepositoryImpl repository = RepositoryImpl.create(config); BR, Jukka Zitting -- Yukatan - http://yukatan.fi/ - info@yukatan.fi Software craftsmanship, JCR consulting, and Java development