Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 2917 invoked from network); 4 Jan 2010 13:36:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jan 2010 13:36:19 -0000 Received: (qmail 24782 invoked by uid 500); 4 Jan 2010 13:36:19 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 24697 invoked by uid 500); 4 Jan 2010 13:36:19 -0000 Mailing-List: contact commits-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 commits@jackrabbit.apache.org Received: (qmail 24688 invoked by uid 99); 4 Jan 2010 13:36:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2010 13:36:19 +0000 X-ASF-Spam-Status: No, hits=-1998.2 required=10.0 tests=ALL_TRUSTED,MIME_QP_LONG_LINE X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2010 13:36:18 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 1495416E2F for ; Mon, 4 Jan 2010 13:35:58 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Mon, 04 Jan 2010 13:35:57 -0000 Message-ID: <20100104133557.9021.35600@eos.apache.org> Subject: =?utf-8?q?=5BJackrabbit_Wiki=5D_Update_of_=22RemoteAccess=22_by_ThomasMue?= =?utf-8?q?ller?= Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" fo= r change notification. The "RemoteAccess" page has been changed by ThomasMueller. http://wiki.apache.org/jackrabbit/RemoteAccess -------------------------------------------------- New page: =3D=3D Remote Access =3D=3D <> =3D=3D Overview =3D=3D Jackrabbit supports remote access using Dav``Ex (since Jackrabbit 2.0) and = using RMI. =3D=3D DavEx =3D=3D For Jackrabbit 2 and assuming the server is running at localhost port 8080: {{{ HashMap params =3D new HashMap(); params.put(GenericRepositoryFactory.URI,"http://localhost:8080/jackrabbit/s= erver"); Repository repository =3D JcrUtils.getRepository(params); }}} For this to work the Spi2davex``Repository``Service``Factory needs to be on= the classpath (see jackrabbit-spi2dav). See also org.apache.jackrabbit.commons.Jcr``Utils#get``Repository(String), = org.apache.jackrabbit.commons.Jcr``Utils#get``Repository(java.util.Map) and = org.apache.jackrabbit.spi2davex.Spi2davex``Repository``Service``Factory = for applicable configuration parameters. =3D=3D RMI =3D=3D Jackrabbit over RMI is slow. = To start a standalone RMI server, use: {{{ Repository repository =3D new TransientRepository(); ServerAdapterFactory factory =3D new ServerAdapterFactory(); RemoteRepository remote =3D factory.getRemoteRepository(repository); Registry reg =3D LocateRegistry.createRegistry(1100); reg.rebind("jackrabbit", remote); }}} To connect to the server, use: {{{ ClientRepositoryFactory factory =3D new ClientRepositoryFactory(); Repository repository =3D factory.getRepository("rmi://localhost:1100/jackr= abbit"); }}}