Spring Integration DSL ErrorHandling

后端 未结 1 1931
难免孤独
难免孤独 2021-01-20 12:53

As the title says, I\'m looking for a good example on errorHandling within a DSL flow. Specifically, I\'m looking to handle errors from a service activator.

Example

相关标签:
1条回答
  • 2021-01-20 13:13

    Actually there is no difference if it is DSL or raw XML Spring Integration config.

    Amqp.inboundAdapter() provides .errorChannel() option as well as <amqp:inbound-channel-adapter> provides error-channel attribute.

    As I say in the manual DSL does the same as all other Spring Integration configuration variants. So, Error Handling here is the same too.

    More info on the matter: http://docs.spring.io/spring-integration/docs/latest-ga/reference/html/configuration.html#namespace-errorhandler

    0 讨论(0)
提交回复
热议问题