Skip to content

Instantly share code, notes, and snippets.

@dfeist
Created June 27, 2012 21:03
Show Gist options
  • Save dfeist/3006836 to your computer and use it in GitHub Desktop.
Save dfeist/3006836 to your computer and use it in GitHub Desktop.
<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