jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <michael.due...@day.com>
Subject Re: Remoting and future of JCR-RMI
Date Thu, 24 Dec 2009 09:23:44 GMT
> 
> 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