jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Hugonnet <ehsavoi...@gmail.com>
Subject Re: Remoting and future of JCR-RMI
Date Mon, 28 Dec 2009 10:01:44 GMT
Thanks :o)
I'll try to get this running.
Emmanuel

On Thu, Dec 24, 2009 at 10:23 AM, Michael Dürig <michael.duerig@day.com> wrote:
>>
>> If webdav is the way to get for remote access, could you please give
>> us some documentation on how to configure the client and server for
>> this communication ?
>
> For Jackrabbit 2 and assuming the server is running at localhost port 8080:
>
> HashMap<String, String> params = new HashMap<String, String>();
> params.put(GenericRepositoryFactory.URI,"http://localhost:8080/jackrabbit/server");
> Repository repository = JcrUtils.getRepository(params);
>
> For this to work the Spi2davexRepositoryServiceFactory needs to be on the
> classpath (see jackrabbit-spi2dav).
>
> See also org.apache.jackrabbit.commons.JcrUtils#getRepository(String),
> org.apache.jackrabbit.commons.JcrUtils#getRepository(java.util.Map) and
> org.apache.jackrabbit.spi2davex.Spi2davexRepositoryServiceFactory for
> applicable configuration parameters.
>
> Michael
>
>

Mime
View raw message