2 Replies Latest reply on Sep 6, 2007 9:55 PM by gbc

    Configuring SFSB maximim size in EJB3

    normanb

      Hi,

      I created a jboss.xml config file for my SFSB and I really want to restrict the max pool size to something quite small, since potentially they are quite intensive, as a test I created as file as below, but it seems to be ignored and as per standardjboss.xml I can go up to 100!! Is there another way to configure size, or to read the jboss.xml?

      <jboss>
       <enterprise-beans>
       <session>
       <ejb-name>MySessionBean</ejb-name>
       <configuration-name>My Standard Stateful SessionBean</configuration-name>
       </session>
       </enterprise-beans>
       <container-configurations>
       <container-configuration extends="Standard Stateful SessionBean">
       <container-name>My Standard Stateful SessionBean</container-name>
       <!-- make changes to the standard configurations here, e.g. pooling etc. -->
       <container-pool-conf>
       <MaximumSize>3</MaximumSize>
       </container-pool-conf>
       </container-configuration>
       </container-configurations>
      </jboss>
      


      Many thanks,

      Norman

        • 1. Re: Configuring SFSB maximim size in EJB3
          rcaballero

          Hi folks,

          I have the same problem but with SLSB. My jboss.xml file is the following

          <?xml version="1.0" encoding="UTF-8"?>
          
          <!DOCTYPE jboss PUBLIC
           "-//JBoss//DTD JBOSS 4.0//EN"
           "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
          <jboss>
           <enterprise-beans>
           <session>
           <ejb-name>PortfolioIdDeliverBean</ejb-name>
           <configuration-name>MyTunning</configuration-name>
           </session>
           </enterprise-beans>
           <container-configurations>
           <container-configuration extends="Standard Stateless SessionBean">
           <container-name>MyTunning</container-name>
           <container-pool-conf>
           <MaximumSize>1</MaximumSize>
           <strictMaximumSize>true</strictMaximumSize>
           <strictTimeout>10</strictTimeout>
           </container-pool-conf>
           </container-configuration>
           </container-configurations>
          </jboss>
          


          Even doing the changes in standarjboss.xml, the result is the same: it's possible to create more than one SLSB.

          Regards

          • 2. Re: Configuring SFSB maximim size in EJB3
            gbc

            Hi,
            To use custom properties with EJB3 you have to declare this informations at ejb3-interceptors-aop.xml, or create a new file, like custom-ejb3-interceptors-aop.xml, and then you use the following annotation:

            @AspectDomain("Put the Name of the Configuration Here")

            Regards