Guest User

Untitled

a guest
Aug 15th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Setting up a retry policy
  2. <spring:beans>
  3. <spring:bean id="threadingPolicyTemplate"
  4. class="org.mule.retry.async.AsynchronousRetryTemplate">
  5. <spring:constructor-arg index="0">
  6. <spring:bean id="foreverRetryPolicyTemplate"
  7. class="com.Component.ChatConnectionRetryPolicyTemplate">
  8. <spring:property name="sleepTime" value="${connector.retryInterval}" />
  9. </spring:bean>
  10. </spring:constructor-arg>
  11. </spring:bean>
  12. </spring:beans>
  13.  
  14. <jdbc:connector name="jdbcConnector" dataSource-ref="SQLServerjdbcDataSource">
  15. <spring:property name="retryPolicyTemplate" ref="threadingPolicyTemplate"/>
  16. <jdbc:query key="PollDB"
  17. value="select * from ofMessageArchive where ID > #[payload:]" />
  18. </jdbc:connector>
Add Comment
Please, Sign In to add comment