Fix issues with Jackrabbit
[lgpl/argeo-commons.git] / server / modules / org.argeo.node.repo.jackrabbit / META-INF / spring / noderepo.xml
index ec8bfca746b45a413f836073bd35ff4c03027656..02d697b243aa3c7ae87cd5f7d0342b7bee34bcbc 100644 (file)
@@ -11,7 +11,8 @@
                </property>
        </bean>
 
-       <bean id="nodeJcrRepository" class="org.argeo.jackrabbit.JackrabbitContainer">
+       <bean id="nodeJcrRepository" class="org.argeo.jackrabbit.JackrabbitContainer"
+               init-method="init" destroy-method="dispose">
                <property name="uri" value="${argeo.node.repo.uri}" />
                <property name="homeDirectory" value="${argeo.node.repo.home}" />
                <property name="configuration" value="${argeo.node.repo.configuration}" />
                                <value>classpath:/org/argeo/jcr/argeo.cnd</value>
                        </list>
                </property>
-               <property name="systemExecutor" ref="systemExecutionService" />
        </bean>
+
+       <!-- Execute initialization with a system authentication -->
+       <bean
+               class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
+               <property name="authenticationManager" ref="authenticationManager" />
+       </bean>
+
 </beans>
\ No newline at end of file