Artemis provides a feature to inject its executor and scheduled executor services when a ArtemisServer is created.
WildFly could leverage that to inject these services so that their thread pools are managed by WildFly.
We would have total control on the creation and configuration of these thread pools using the org.boss.as.threads extension.
The messaging-activemq extension would be updated so that a server resource would have new children using resource definitions from the org.boss.as.threads extension to configure their pools.
Note that this RFE would not impact the Artemis RA that does not provide such executor injection. This will be covered by another JIRA issue.