jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "HowtoSpi2Rmi" by ScottCytacki
Date Thu, 03 Jul 2008 14:39:14 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The following page has been changed by ScottCytacki:

  == Setup a spi server ==
+ === Use the SPIServer class in jackrabbit-test-client ===
  The only code I could find which setups up an SPI server was in the spi-contrib testing
  (even though the folder name is "client" the maven artifactId is jackrabbit-test-client
  This project has a class org.apache.jackrabbit.jcr2spi.SPIServer which starts up the SPI
RMI Server
+ === Use patch on jackrabbit-webapp ===
+ Another option is to try using this patch: attachment:jackrabbit-webapp-SPIServer-1.patch

+ It should be applied to the jackrabbit-webapp project.  It adds a SPIServerStartServlet,
which adds the
+ SPIServer to the webapps RMI lookup service.  It should wrap the existing repository started
up by the webapp
+ normally.  You have to add a reference to your WEB-INF/web.xml:
+ {{{
+     <servlet>
+         <servlet-name>SPIServerStartup</servlet-name>
+         <description>
+             Starts up an SPI RMI server.   
+         </description>
+         <servlet-class>org.apache.jackrabbit.j2ee.SPIServerStartupServlet</servlet-class>
+         <load-on-startup>6</load-on-startup>
+     </servlet>
+ }}}
+ It doesn't pay attention to all the config options used by the rest of webapp so you might
have to 
+ tweak it.  
+ I haven't submitted an issue with this patch because jackrabbit-webapp should be not be
depending on the jars that
+ SPIServer requires.  One way to get around this is to make another project inside of sandbox/spi
that depends 
+ on jackrabbit-webapp and creates this servlet.  Then people can copy it and its deps into
the webapp.
  == Setup a spi rmi client ==

View raw message