]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.server/src/main/resources/org/argeo/slc/server/spring/activemq.xml
df37901e1eabf7f021c617db1f40d9f6dbe15839
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-5.2.0.xsd">
7 <import resource=
"classpath:org/argeo/slc/jms/spring.xml" />
9 <amq:broker useJmx=
"false" persistent=
"false">
10 <amq:transportConnectors>
11 <amq:transportConnector uri=
"tcp://localhost:61616" />
12 </amq:transportConnectors>
15 <amq:connectionFactory id=
"amqConnectionFactory"
16 brokerURL=
"vm://localhost" />
18 <bean id=
"jmsConnectionFactory"
19 class=
"org.springframework.jms.connection.SingleConnectionFactory">
20 <property name=
"targetConnectionFactory">
21 <ref local=
"amqConnectionFactory" />
26 <amq:topic id=
"destination.agent.register" physicalName=
"agent.register" />
29 <bean id=
"template.listenerContainer"
30 class=
"org.springframework.jms.listener.DefaultMessageListenerContainer"
32 <property name=
"connectionFactory" ref=
"jmsConnectionFactory" />
33 <property name=
"transactionManager" ref=
"transactionManager" />
36 <bean id=
"template.listenerAdapter"
37 class=
"org.springframework.jms.listener.adapter.MessageListenerAdapter"
39 <property name=
"messageConverter" ref=
"slcDefault.jms.castorMessageConverter" />