O'Reilly logo

Oracle WebLogic Server 12c Advanced Administration Cookbook by Dalton Iwazaki

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required