]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.jackrabbit.webapp/WEB-INF/applicationContext.xml
Move to the root the bundles which will be part of v1.4 and v2.2
[lgpl/argeo-commons.git] / org.argeo.jackrabbit.webapp / WEB-INF / applicationContext.xml
diff --git a/org.argeo.jackrabbit.webapp/WEB-INF/applicationContext.xml b/org.argeo.jackrabbit.webapp/WEB-INF/applicationContext.xml
new file mode 100644 (file)
index 0000000..723e6c7
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
+
+       <import resource="osgi.xml" />
+       <import resource="security-filters.xml" />
+
+       <bean
+               class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+               <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
+               <property name="locations">
+                       <value>osgibundle:jackrabbit-webapp.properties</value>
+               </property>
+       </bean>
+
+       <!-- The JCR sessions, optimised per web session. -->
+       <bean id="scopedSessionProvider" init-method="init"
+               destroy-method="destroy" class="org.argeo.jackrabbit.remote.ScopedSessionProvider"
+               scope="session">
+               <aop:scoped-proxy proxy-target-class="false" />
+       </bean>
+
+       <!-- The JCR sessions, one login per request. -->
+       <bean id="openInViewSessionProvider" init-method="init"
+               destroy-method="destroy" class="org.argeo.jackrabbit.remote.OpenInViewSessionProvider">
+       </bean>
+
+       <!-- <bean id="repositoryRegister" class="org.argeo.jcr.DefaultRepositoryRegister" 
+               /> -->
+
+</beans>
\ No newline at end of file