Book Image

Oracle WebLogic Server 12c Advanced Administration Cookbook

By : Dalton Iwazaki
Book Image

Oracle WebLogic Server 12c Advanced Administration Cookbook

By: Dalton Iwazaki

Overview of this book

Table of Contents (15 chapters)
Oracle WebLogic Server 12c Advanced Administration Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 jmsAppWM work manager in the Administration Console:

  1. Access the Administration Console by pointing your web browser to http://adminhost.domain.local:7001/console.

  2. Click on the Lock & Edit button to start a new edit session.

  3. Expand the Environment tree...