Limiting the JMS Queue consumers
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.
Getting ready
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.
How to do it...
First, create the jmsAppMaxThreads
maximum threads constraint and the ...
Get Oracle WebLogic Server 12c Advanced Administration Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.