How to limit the number of MDB instances listening to a Jboss JMS queue

后端 未结 2 1723
你的背包
你的背包 2021-02-02 15:11

I\'m having a problem with the following setup:

A Java application send email msg to a JMS queue, then an MDB listening to the queue get the email msg with the onMessage

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 15:45

    Try an additional acitivation config property:

    @ActivationConfigProperty( propertyName = "maxSession", propertyValue = "someNumber")
    

    where someNumber is the maximum number of instances you want.

提交回复
热议问题