Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <spring:beans>
- <spring:bean id="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy">
- <spring:property name="maximumRedeliveries" value="5"/>
- <spring:property name="initialRedeliveryDelay" value="5000"/>
- <spring:property name="redeliveryDelay" value="2000"/>
- </spring:bean>
- <spring:bean id="amqFactory" class="org.apache.activemq.ActiveMQConnectionFactory" lazy-init="true">
- <spring:property name="brokerURL" value="failover:(tcp://localhost:61616)"/>
- <spring:property name="redeliveryPolicy" ref="redeliveryPolicy"/>
- </spring:bean>
- </spring:beans>
- <jms:activemq-connector connectionFactory-ref="amqFactory" name="Active_MQ" brokerURL="tcp://localhost:61616" validateConnections="true" doc:name="Active MQ" password="admin" username="admin" maxRedelivery="2" specification="1.1"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement