Advertisement
Guest User

Untitled

a guest
Apr 6th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <spring:beans>
  2. <spring:bean id="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy">
  3. <spring:property name="maximumRedeliveries" value="5"/>
  4. <spring:property name="initialRedeliveryDelay" value="5000"/>
  5. <spring:property name="redeliveryDelay" value="2000"/>
  6. </spring:bean>
  7. <spring:bean id="amqFactory" class="org.apache.activemq.ActiveMQConnectionFactory" lazy-init="true">
  8. <spring:property name="brokerURL" value="failover:(tcp://localhost:61616)"/>
  9. <spring:property name="redeliveryPolicy" ref="redeliveryPolicy"/>
  10. </spring:bean>
  11. </spring:beans>
  12. <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