6 Replies Latest reply on May 5, 2004 3:24 PM by Collin

    How to Configure the # of instances of an MDB

    sick1 Newbie

      I would like to control the # of instances of MDB's in the same way that I can control the min/max # of connections associated with a DataSource. I've seen the question posted several times here but I didn't find a clear answer. I'd also be happy to be talked into a better setup but I've achieved success using raw JMS with this type of problem before.

      I'm using JBoss 3.2.3 on WinXP/2000 with JRockit 1.4.1_03.

      The issue that I have is that I have an MDB which watches a Queue that can get a sudden burst of messages. The MDB does some CMP calls in a transaction. I keep running out of connections (No ManagedConnections available within configured blocking timeout) because it seems JBoss keeps making more instances of the MDB to handle the messages in the Queue.

      I can start looking for a 'magic' number of connections for the database/datasource but this seems to be pretty fragile. I'd much rather set a max of the # of MDB's that can be created.


      Mike Sick