6.6 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
Restart managed servers and notice the change in the number of consumers for the QUEUE’s.
Parent topic: Frequently Asked Questions