]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.activemq/src/main/resources/org/argeo/slc/activemq/spring-agent.xml
32aa12fe03a9428133d5f82390cb4768df17c4bd
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.activemq / src / main / resources / org / argeo / slc / activemq / spring-agent.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:amq="http://activemq.apache.org/schema/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
5 http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"
6 default-lazy-init="false">
7
8 <bean
9 class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
10 lazy-init="false">
11 <property name="properties">
12 <props>
13 <prop key="org.apache.activemq.brokerURL">
14 tcp://localhost:61616
15 </prop>
16 </props>
17 </property>
18 <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
19 <property name="ignoreUnresolvablePlaceholders" value="true" />
20 </bean>
21
22 <import resource="classpath:org/argeo/slc/activemq/spring.xml" />
23
24 <bean id="slcDefault.jms.agent" class="org.argeo.slc.jms.JmsAgent">
25 <property name="jmsTemplate" ref="slcDefault.jms.jmsTemplate" />
26 <property name="agentRegister" ref="slcJms.destination.agent.register" />
27 <property name="agentUnregister" ref="slcJms.destination.agent.unregister" />
28 </bean>
29
30 <bean id="slcTemplate.jms.agentListenerContainer.newExecution"
31 parent="slcTemplate.jms.agentListenerContainer">
32 <property name="action" value="newExecution" />
33 </bean>
34
35 <!-- Templates -->
36 <bean id="slcTemplate.jms.agentListenerContainer" class="org.argeo.slc.jms.AgentListenerContainer"
37 abstract="true">
38 <property name="jmsAgent" ref="slcDefault.jms.agent" />
39 <property name="connectionFactory" ref="slcDefault.jms.connectionFactory" />
40 <property name="messageConverter" ref="slcDefault.jms.castorMessageConverter" />
41 <property name="pubSubDomain" value="true" />
42 </bean>
43
44
45 </beans>