2 Replies Latest reply on Aug 14, 2009 6:25 AM by Siddharth Bondre

    Help configure MDB threads

    Gerald Turner Newbie

      Under JBoss 4.0 and earlier versions I had an MDB with the following jboss.xml deployment descriptor:

       <configuration-name>LoggingMDB Message Driven Bean</configuration-name>
       <container-configuration extends="Standard Message Driven Bean">
       <container-name>LoggingMDB Message Driven Bean</container-name>

      It worked, the MDB would scale up to 100 threads.

      However now we've upgraded our servers to JBoss 4.2.3, and the MDB seems to be limited to 15 threads.

      As a first step in fixing this, I updated the MDB code/packaging to EJB3 with annotation such as:

       @ActivationConfigProperty(propertyName = "maxSession",
       propertyValue = "100")})

      However it still seems to be limited to 15 threads.

      Reviewing random bits of unorganized wiki documentation I found the answer may be in deploy/ejb3-interceptors-aop.xml:

       <domain name="Message Driven Bean">
       <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
       @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=15, timeout=10000)

      Could somebody please explain to me whether it's possible to:

      * Configure these annotations in a separate file, preferably bundled in the EJB jar/ear?

      * Affect the pool size of this particular MDB, rather than the default which would affect other MDBs?