Hello,

You can change these settings in var/config/config.xml. This file defines overrides for the GBeans, i.e. services such as EJB- Containers, running within Geronimo.

EJB Containers are declared by the org.apache.geronimo.configs/ openejb//car confiiguration and here are there default configuration:

<gbean name="DefaultStatelessContainer" class="org.apache.geronimo.openejb.EjbContainer">
        <attribute name="id">Default Stateless Container</attribute>
        <attribute name="type">STATELESS</attribute>
        <reference name="OpenEjbSystem">
            <name>OpenEjbSystem</name>
        </reference>
    </gbean>
<gbean name="DefaultStatefulContainer" class="org.apache.geronimo.openejb.EjbContainer">
        <attribute name="id">Default Stateful Container</attribute>
        <attribute name="type">STATEFUL</attribute>
        <attribute name="properties">PoolSize=1000</attribute>
        <reference name="OpenEjbSystem">
            <name>OpenEjbSystem</name>
        </reference>
    </gbean>
<gbean name="DefaultBMPContainer" class="org.apache.geronimo.openejb.EjbContainer">
        <attribute name="id">Default BMP Container</attribute>
        <attribute name="type">BMP_ENTITY</attribute>
        <reference name="OpenEjbSystem">
            <name>OpenEjbSystem</name>
        </reference>
    </gbean>
<gbean name="DefaultCMPContainer" class="org.apache.geronimo.openejb.EjbContainer">
        <attribute name="id">Default CMP Container</attribute>
        <attribute name="type">CMP_ENTITY</attribute>
        <reference name="OpenEjbSystem">
            <name>OpenEjbSystem</name>
        </reference>
    </gbean>

To override the PoolSize attribute of DefaultStatefulContainer, you need to update the org.apache.geronimo.configs/openejb//car confiiguration as follows in var/config/config.xm:

<module name="org.apache.geronimo.configs/openejb/2.1-SNAPSHOT/ car">
        <gbean name="EJBNetworkService">
<attribute name="port">${OpenEJBPort + PortOffset}</ attribute>
            <attribute name="host">${ServerHostname}</attribute>
        </gbean>
        <!-- Start Overrides DefaultStatefulContainer settings -->
        <gbean name="DefaultStatefulContainer">
          <attribute name="properties">PoolSize=1000000</attribute>
        </gbean>
        <!-- End Overrides DefaultStatefulContainer settings -->
    </module>

Properties declared there are passed "as-is" to OpenEJB; hence, you can use the same property names defined by OpenEJB.

Thanks,
Gianny


On 25/01/2008, at 6:19 AM, the666pack wrote:


Hello,

Can anybody tell me how i can customize the EJB-Container settings in
Geronimo?

I dont find an entry in the admin-console and i dont have an idea which
files i can search for change.

Basically i would like to set values like Bean-Pool Size or Maximum Cache
Size as well as Timeout values.

I hope someone can help,

thank you,

Mario
--
View this message in context: http://www.nabble.com/Geronimo-2.0%3A- customize-EJB-Container-settings-tp15072400s134p15072400.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Reply via email to