]>
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
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">
8 <import resource=
"classpath:org/argeo/slc/activemq/spring.xml" />
10 <bean id=
"slcDefault.jms.agent" class=
"org.argeo.slc.jms.JmsAgent"
12 <property name=
"jmsTemplate" ref=
"slcDefault.jms.jmsTemplateCastor" />
13 <property name=
"agentRegister" ref=
"slcJms.destination.agent.register" />
14 <property name=
"agentUnregister" ref=
"slcJms.destination.agent.unregister" />
18 <bean id=
"slcDefault.jms.listener.newExecution" parent=
"slcTemplate.jms.listenerContainer">
19 <property name=
"connectionFactory" ref=
"slcDefault.jms.connectionFactory" />
20 <property name=
"destination" ref=
"slcJms.destination.agent.newExecution" />
21 <property name=
"messageListener">
22 <bean parent=
"slcTemplate.jms.listenerAdapterCastor">
23 <constructor-arg ref=
"slcDefault.jms.agent" />
24 <property name=
"defaultListenerMethod" value=
"newExecution" />
27 <property name=
"messageSelector">
28 <bean factory-bean=
"slcDefault.jms.agent" factory-method=
"getMessageSelector"/>