2 Replies Latest reply on Jan 2, 2009 9:19 AM by babernat

    PoolClass in a descriptor

      Hi,

      I've been using the following annotations on an EJB 3.0 MDB in JBoss 4.2.3GA to limit the number of MDB instances that can be created. I'd like to move the configuration into descriptors so that I don't have to recompile in order to change the configuration. I (think) I understand how to handle maxSession, but how do I move the Pool Class configuration to a descriptor. Does that go in the jboss.xml file inside of the jar?

      @PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=5, timeout=10000)
      @MessageDriven(activationConfig =
      {
       @ActivationConfigProperty(propertyName="maxSession",propertyValue="5"),
       @ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue"),
       @ActivationConfigProperty(propertyName="destination",propertyValue="queue/TLEPropagationQueue")
      })
      


      Thanks