]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - server/org.argeo.slc.siteserver/bundles/org.argeo.slc.server.services/META-INF/spring/services.xml
Make some properties externally configurable
[gpl/argeo-slc.git] / server / org.argeo.slc.siteserver / bundles / org.argeo.slc.server.services / META-INF / spring / services.xml
index e96f1e0dfb37d5012d6ada8d74cc8b51ddfee3be..45406600f7a26e98ec361aed3a154b36d951d0c4 100644 (file)
@@ -6,7 +6,17 @@
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
-       
+
+       <bean
+               class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+               <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
+               <property name="ignoreUnresolvablePlaceholders" value="true" />
+               <property name="locations">
+                       <value>osgibundle:services.properties
+                       </value>
+               </property>
+       </bean>
+
        <!-- Services -->
        <bean id="testManagerService" class="org.argeo.slc.services.impl.test.TestManagerServiceImpl">
                <constructor-arg ref="testResultDao" />
 
        <bean id="agentService" class="org.argeo.slc.services.impl.runtime.AgentServiceImpl">
                <constructor-arg ref="slcAgentDescriptorDao" />
+               <constructor-arg ref="agentFactory" />
+               <property name="pingCycle" value="${slc.server.services.pingCycle}" />
        </bean>
+
+       <bean id="slcExecutionService"
+               class="org.argeo.slc.services.impl.process.SlcExecutionServiceImpl">
+               <constructor-arg ref="slcExecutionDao" />
+       </bean>
+
+       <!--
+               Services transactions <aop:config> <aop:pointcut id="serviceMethods"
+               expression="execution(*
+               org.argeo.slc.services.test.TestManagerService.*(..))" /> <aop:advisor
+               advice-ref="serviceAdvice" pointcut-ref="serviceMethods" />
+               </aop:config> <tx:advice id="serviceAdvice"
+               transaction-manager="transactionManager"> <tx:attributes> <tx:method
+               name="*" propagation="REQUIRED" /> </tx:attributes> </tx:advice>
+       -->
 </beans>
\ No newline at end of file