How to dynamically change JMS queue MDB pool size in WildFly 10

前端 未结 1 1630
后悔当初
后悔当初 2021-01-21 14:51

I am working with WildFly 10.1 which ships with Artemis as the new JMS provider but I am unable to find how to dynamically change the number of consumer threads for a specific M

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

    As you want to do this configuration for a specific MDB you could firstly assign it to a dedicated pool. See this answer.

    Then to dynamically update your pool attributes you could take a look at this article which describes how to configure or add ejb3 pools using jboss-cli or standalone.xml configuration. (with JBOSS 7, but it should not be so different with Wildfly 10)

    The following jboss-cli command could then be used to modify your pool size dynamycally as it defaults to 20 for MDBs:

    /subsystem=ejb3/strict-max-bean-instance-pool=myPool:write-attribute(name=max-pool-size)

    Finally, it seems you also have to configure the 'maxSession' activation configuration property accordingly in your MDB. See this thread and also this question for contextual configuration.

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