2 Replies Latest reply on Aug 21, 2003 1:27 PM by sys user

    Multithreading MDBs

    sys user Master

      I am currently using JBoss 3.2.1. My app consists of 2 MDBs listening on 2 separate queues. I have set them up so that only one instance of each MDB will be active at a time (i.e. only one listener on each queue) by setting MaximumSize to 1 in the invoker-proxy-binding session of the jboss.xml file. The problem is, when it's running it seems that only one thread has been assigned to serve both MDBs (Thread.currentThread().getName() constantly shows "Thread Pool Worker-0".) Isn't the container supposed to assign a separate thread to serve each MDB in this case to achieve some sort of concurrency? Any help from people who understand how the JBoss container works is appreciated. Thanks.