Created
June 27, 2012 21:03
-
-
Save dfeist/3006836 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<choice-exception-strategy name="myReusableES"> | |
<catch-exception-strategy when="#[exception.causedBy(org.my.BusinessException)]"> | |
<set-payload message="Error occurred processing order: #[exception.message]"/> | |
</catch-exception-strategy> | |
<rollback-exception-strategy maxRedeliveryAttempts="3"> | |
<logger level="DEBUG" message="Message rolled back"/> | |
<on-redelivery-attempts-exceeded> | |
<jms:outbound-endpoint queue="DLQ"/> | |
</on-redelivery-attempts-exceeded> | |
</catch-exception-strategy> | |
</choice-exception-strategy> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment