Controlling the concurrent execution of MDB

Solution Unverified - Updated -

Issue

We have a Message Driven Bean (MDB) that process some messages off the queue. The logic inside the onMessage() method is to do some database processing, and since the MDB can be processed parallel (depends on the worker threads) we are having some data base connection resource issue. I wonder is there any way we can process MDB kind of sequentially on one worker thread so we avoid database connection pool running out of connections? I also wonder can one of the Jboss specific annotations maxSession, minSession, maxMessages can bail us out here?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.