On 28/01/2008, at 2:16 AM, the666pack wrote:


another thing,

geronimo seems to cut out the parts of the config.xml file which i entered.

so i try to alter the properties:

        <gbean name="DefaultStatelessContainer">
            <attribute name="properties">PoolSize=100</attribute>
<attribute name="properties">StrictPooling=true</ attribute>
        </gbean>

Hello,

You need to configure these properties like this:
<gbean name="DefaultStatelessContainer">
  <attribute name="properties">
    PoolSize=100
    StrictPooling=true
  </attribute>
</gbean>

Thanks,
Giany


and after starting and shutting down geronimo i end up without the
"PoolSize" line.. same happens with "TimeOut" values and also in the
StatefulContainer gbean.

any idea?

thanks,

mario.




Gianny Damour wrote:

Hello Mario,

EJB Container properties along with their default values are defined
by the resource META-INF/org.apache.openejb.embedded/service-jar.xml
within the openejb-core.jar archive. Here is an URL pointing to this
resource:
http://svn.apache.org/repos/asf/openejb/trunk/openejb3/container/
openejb-core/src/main/resources/META-INF/org.apache.openejb.embedded/
service-jar.xml

I believe you are after the TimeOut and PoolSize properties.

Thanks,
Gianny

On 26/01/2008, at 10:28 PM, the666pack wrote:


thanks,

where can i get a full listing of the possible properties for the
openejb
container?

in particular i would need properties like MaxCacheSize for how
many beans
can be kept at the same time by the ejb-container or a
RemoveTimeout which
defines the time after which the beans are removed from the pool
when not
needed.

i didnt find a list where i can see the properties that are
possible for
openejb.

thanks for helping,

mario


Gianny Damour wrote:

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.





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





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


Reply via email to