By default, an MDB (message driven bean) uses up to 16 threads per WebLogic Server instance to consume a JMS Queue destination.
In this recipe, an MDB QueueMDB
from the hypothetical JMSApp
application will be configured to use only one thread to consume the JMS Queue. This will be done by creating a new work manager jmsAppWM
with a maximum thread constraint jmsAppMaxThreads
with the value 1
and update the MDB descriptor to associate the new work manager.
The work manager will be defined in the Administration Console. The MDB descriptor must also update a descriptor in order to be associated with the new work manager.
First, create the jmsAppMaxThreads
maximum threads constraint and the jmsAppWM
work manager in the Administration Console:
Access the Administration Console by pointing your web browser to
http://adminhost.domain.local:7001/console
.Click on the Lock & Edit button to start a new edit session.
Expand the Environment tree...