jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth Yue <Kenneth....@Sun.COM>
Subject How to replace RMI with WebDAV?
Date Thu, 27 Aug 2009 17:43:21 GMT
All,

I'm trying to replace, in my META-INF/context.xml,

   <Resource name="jcr/repository"
             auth="Container"
             type="javax.jcr.Repository"
 
factory="org.apache.jackrabbit.rmi.client.ClientRepositoryFactory"
             url="rmi://localhost:1099/jackrabbit.repository"/>

by

   <Resource name="jcr/repository"
             auth="Container"
             type="org.apache.jackrabbit.jcr2spi.RepositoryImpl"
             factory="org.apache.jackrabbit.jcr2spi.RepositoryImpl$Factory"
 
org.apache.jackrabbit.jcr2spi.RepositoryImpl.factory="org.apache.jackrabbit.client.RepositoryFactoryImpl"
 
org.apache.jackrabbit.jcr2spi.RepositoryImpl.class="org.apache.jackrabbit.client.spi2dav.RepositoryConfigImpl"
 
org.apache.jackrabbit.repository.spi2dav.uri="http://localhost:8080/jackrabbit/server"/>

but this doesn't work because 
org.apache.jackrabbit.client.RepositoryFactoryImpl doesn't implement 
javax.naming.spi.ObjectFactory, which lines 249-251 of 
org.apache.jackrabbit.jcr2spi.RepositoryImpl.java is looking for.  So 
how do I replace RMI with WebDAV without "import 
org.apache.jackrabbit..." in my code?  Thanks in advance.

Ken


Mime
View raw message