Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 17208 invoked from network); 28 Feb 2007 08:47:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2007 08:47:45 -0000 Received: (qmail 91678 invoked by uid 500); 28 Feb 2007 08:47:54 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 91390 invoked by uid 500); 28 Feb 2007 08:47:53 -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 91381 invoked by uid 99); 28 Feb 2007 08:47:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 00:47:53 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of tobias.strasser@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Feb 2007 00:47:42 -0800 Received: by nf-out-0910.google.com with SMTP id x4so492996nfb for ; Wed, 28 Feb 2007 00:47:21 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=SbTwmCKVLoJBZd1kOprAuX3RESgs17k6WCXLuQ1NNdRWvgydzi2WZ4HOvXUpWch4UT9jIMR4WLHOgW1RcBpyTSjyxRZXRgkyLgRiM37XZbzYpfyO1WA2PNI2y6lV6MgjE7+dUvS5yFvJ13HP/PfIGiayaJYhSelVszhivS7Pki0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=HiUPgPpQRj3PUngH5PddjS9XzrCs/g6i2FNc1AeyuIYLIz2u+2umK6vFM+kqb2mq1unkfd2E15RF3rYcZwSqBmy1gi9e33Zp2cd/Xiq+MtUNlBX11pAm1gfxFbJ7uifOOPc9+YCAxFSyeq5Sm8d7YroGWg6Xn448tbPUPS6RG3U= Received: by 10.82.135.13 with SMTP id i13mr64573bud.1172652440776; Wed, 28 Feb 2007 00:47:20 -0800 (PST) Received: by 10.82.136.8 with HTTP; Wed, 28 Feb 2007 00:47:20 -0800 (PST) Message-ID: <8be731880702280047n233d26d5n4053ff1526c3949d@mail.gmail.com> Date: Wed, 28 Feb 2007 09:47:20 +0100 From: "Tobias Bocanegra" Reply-To: tobias.bocanegra@day.com Sender: tobias.strasser@gmail.com To: users@jackrabbit.apache.org Subject: Re: How to communicate between repository client and server with only JCR, JSR-170 API In-Reply-To: <2b6280ae0702271016r5d06e523j7785912394f45bb7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2b6280ae0702271016r5d06e523j7785912394f45bb7@mail.gmail.com> X-Google-Sender-Auth: f2f9999e4efcb65d X-Virus-Checked: Checked by ClamAV on apache.org the rmi implementation is jcr neutral, if you don't want to use RMI, you need to run your application in the same VM as the repository. the problem is, that jsr170 does not specify any remoting protocol. but this will change in jsr283 (jcr2.0) which defines (among other new stuff) a SPI. regards, toby On 2/27/07, Lubos and Alena Pochman wrote: > Hi, > > I started exploring Jackrabbit and went over FirsHop, SecondHop, ThirdHop > examples. > > I also deployed jackrabbit-webapp-1.2.2 servlet with WebDav repository > server (can see it in DAV Explorer) > over http://localhost:8080/jackrabbit-webapp-1.2.2/repository/default/, > http://localhost:8080/jackrabbit-webapp-1.2.2/server. > > FirsHop, SecondHop, ThirdHop examples use TransientRepository(), and I have > modified the jackrabbit server webapp > and the ...Hop examples to use the server with creating repository like > this: > > String repoName = "rmi://localhost:5999/jackrabbit.repository"; > ClientRepositoryFactory factory = new ClientRepositoryFactory(); > Repository repository = factory.getRepository(repoName); > > The problem is that ClientRepositoryFactory is Jackrabbit implementation not > a JCR, JSR-170. > I would prefer to avoid RMI (but can live with it), and I would like client > to be CMS neutral, do not use Jackrabbit, but use only > JCR, JSR-170 complaint API. > > Is there a way? > > Thanks, Lubos Pochman > -- -----------------------------------------< tobias.bocanegra@day.com >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---