How can I allow multiple @JmsListener destinations for a single method

前端 未结 1 1590
粉色の甜心
粉色の甜心 2021-01-27 15:07

I\'m currently working on migrating an IBM Webshere application to Spring Boot.

As part of this there is an MDB class which needs to be converted into @JmsListene

相关标签:
1条回答
  • 2021-01-27 15:27

    @JmsListener is a repeatable annotation on Java 8, so you can associate several JMS destinations with the same method by adding additional @JmsListener declarations to it.

    https://docs.spring.io/spring/docs/current/spring-framework-reference/integration.html#jms-annotated

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