geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianny Damour <gianny.dam...@optusnet.com.au>
Subject Re: Geronimo 2.0: customize EJB-Container settings
Date Mon, 28 Jan 2008 21:42:17 GMT
Hello Mario,

I do not know. I forward your email to the OpenEJB user list, where  
experts should be able to help.

Thanks,
Gianny

On 28/01/2008, at 1:21 AM, the666pack wrote:

>
> hello,
>
> thank you, these values are quite helpful already to specify important
> performance values.
>
> however i am missing some configuration settings.. in particular:
>
> - container settings for entity beans (maximum pool size, commit  
> option)
> - cache settings (not pool-settings but merely what happens when  
> the pool is
> full)
>
> is it possible to set such settings in geronimo or openejb?
>
> thanks very much for helping,
>
> 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-tp15072400s134p15119677.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>


Mime
View raw message