+ All the examples included in this page use JNDI to access the repository.
+ Please refer to
+
+ Tomcat 4.1 JNDI resource HOWTO to find more details.
+
+
+ Important: remember that two repositories instances should
+ never read from/write to the same physical storage.
+ This setup is not supported and will lead to corrupt data.
+
+
+
Place the jackrabbit jar file and all the dependencies
@@ -40,7 +54,7 @@
RepositoryImpl.shutdown() (e.g. in the destroy() method of a
servlet).
Same as Model 1 with the following modifications.
@@ -136,5 +151,71 @@
+
+
+
+ This example shows you how to connect to an already
+ running jcr-rmi server (see jcr-rmi javadocs).
+
+
+
+ Place jcr-rmi jar file and its dependencies
+ under [tomcat folder]/webapps/[your app]/WEB-INF/lib.
+ You can find the jcr-rmi implementation under the contrib
+ folder of the source distribution.
+
+
+ Register the client repository factory in the context scope.
+
+
Declare the JNDI address under which you will request the
+ repository instance in the web application.