3 Replies Latest reply on Mar 31, 2003 8:33 AM by jfair

    Number of Beans in Pool - strictMaximumSize

    jfair

      Hi,
      I'm trying to limit the number of beans in the pool to 1. Here is my jboss.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <enterprise-beans>
      <message-driven>
      <ejb-name>POInfoListener</ejb-name>
      jboss.j2ee:service=EJB,jndiName=ejb/Configuration
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name>queue/POInfoNativeQ</destination-jndi-name>
      </message-driven>
      </enterprise-beans>
      <container-configuration>
      <container-pool-conf>
      1
      true
      </container-pool-conf>
      </container-configuration>


      If any new messages arrive in the queue, they will be blocked until the bean is finished processing and becomes available. However, this is not what happens. As new messages arrive on the queue, the pool expands and creates new beans as required. The strictMaximumSize attribute is supposed to limit the number of beans created to the number specified as the maximum size.

      Any ideas are appreciated.

      Thanks,

      John