5 Replies Latest reply on Jan 24, 2013 11:19 AM by peter craddock

    MDB Pool config will noit allow me to use more the 15 threads

    peter craddock Novice

      I have the following config in my jboss-ejb3.xml config

       

      <assembly-descriptor>
          <p:pool>
              <ejb-name>TaskReceiverMEJB</ejb-name>
              <p:bean-instance-pool-ref>cp-receiver-single-thread-pool</p:bean-instance-pool-ref>
          </p:pool>
          <p:pool>
              <ejb-name>TaskDespatcherMEJB</ejb-name>
              <p:bean-instance-pool-ref>cp-despatcher-single-thread-pool</p:bean-instance-pool-ref>
          </p:pool>
          <p:pool>
              <ejb-name>TaskRunnerMEJB</ejb-name>
              <p:bean-instance-pool-ref>cp-mdb-strict-max-pool</p:bean-instance-pool-ref>
          </p:pool>
      </assembly-descriptor>

       

      and the follwoing set up in standalone.xml

       

              <pools>
                  <bean-instance-pools>
                      <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                      <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                      <strict-max-pool name="cp-mdb-strict-max-pool" max-pool-size="200" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                      <strict-max-pool name="cp-despatcher-single-thread-pool" max-pool-size="1" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                      <strict-max-pool name="cp-receiver-single-thread-pool" max-pool-size="1" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                  </bean-instance-pools>
              </pools>

       

      My reciever and despatcher are running as singletons but the runner is only using 15 threads. I reduced the mdb-strict-max-pool to 10 just to see if this was effecting me but I still got 15