Increase maximum number of message-driven bean threads
Default number of consumers for an MDB is 16. To increase or restrict this number create Custom Work Manager with a Max Threads Constraint in conjunction with MDBs.
The solution is to create a work manager with a max threads constraint and assign the proxy services dispatch policy to this work manager.
Steps to create custom work manager
- Modify the MDB deployment descriptior and redploy the EAR
- Create Custom Workmanager and add constraints to limit the number of the max MDB threads