users@glassfish.java.net

Re: EJB Container Cache and Pool Settings

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Apr 2008 03:57:03 PST

You'll get two separate pools.
And the pools are [i]per bean[/i]: If you have a session bean A and a session bean B, you'll have two separate pools with each 100 beans.

Example of definitions in sun-ejb-jar.xml:
        <ejb>
                <ejb-name>SampleCMP</ejb-name>
                <jndi-name>mycmp</jndi-name>
                <bean-pool>
                        <steady-pool-size>10</steady-pool-size>
                        <resize-quantity>10</resize-quantity>
                        <max-pool-size>100</max-pool-size>
                        <pool-idle-timeout-in-seconds>500</pool-idle-timeout-in-seconds>
                </bean-pool>
        </ejb>

Note that this is for [i]pre-EJB 3.0[/i] Entity Beans (i.e. CMP/BMP). Java Persistence Entities (which are not Entity Beans but some people mix them up) are not pooled in GlassFish's JPA implementation (TLE).

Regards,
Dies
[Message sent by forum member 'dkoper' (dkoper)]

http://forums.java.net/jive/thread.jspa?messageID=267042