How to add multiple JMS MessageListners in a single MessageListenerContainer for Spring Java Config

前端 未结 3 946
时光说笑
时光说笑 2021-01-17 22:22

I had the following xml code in my spring-config.xml



        
3条回答
  •  不知归路
    2021-01-17 22:49

    You can add multiple annotations, each with its own concurrency.

    @JmsListener(id="1", destination = "mydestination", containerFactory = "myfactory", concurrency ="1-5")
    
    @JmsListener(id="2", destination = "mydestination", containerFactory = "myfactory", concurrency = "3-5")
    

提交回复
热议问题