You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by the666pack <ma...@gmail.com> on 2008/01/24 20:19:04 UTC
Geronimo 2.0: customize EJB-Container settings
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.
Re: Geronimo 2.0: customize EJB-Container settings
Posted by Gianny Damour <gi...@optusnet.com.au>.
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.
>
Re: Geronimo 2.0: customize EJB-Container settings
Posted by the666pack <ma...@gmail.com>.
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>
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.
Re: Geronimo 2.0: customize EJB-Container settings
Posted by Manu George <ma...@gmail.com>.
Hi
I opened a JIRA and attached an initial patch for a new portlet for
displaying information regarding the different ejb containers and the
ejbs deployed in them. The JIRA is
http://issues.apache.org/jira/browse/GERONIMO-3811. Currently to after
changing the properties like pool size etc the portlet prompts you to
restart the server as openejb doesn't support dynamic changes of these
settings. Suggestions welcome
Thanks
Manu
On Thu, Jan 31, 2008 at 8:16 PM, Kevan Miller <ke...@gmail.com> wrote:
>
> On Jan 31, 2008, at 7:36 AM, Manu George wrote:
>
> > Hi,
> >
> > What does the community think about having a portlet in the admin
> > console for configuring openejb related stuff as well as displaying
> > the different containers etc deployed in Geronimo. I think this may
> > improve the usability of Geronimo. If there is interest I would like
> > to investigate it further.
>
> Is that a trick question? ;-) Sounds like a great idea. I'd certainly
> be interested in seeing console support. Doubt that I'd be able to
> help out, though...
>
> --kevan
>
>
Re: Geronimo 2.0: customize EJB-Container settings
Posted by Kevan Miller <ke...@gmail.com>.
On Jan 31, 2008, at 7:36 AM, Manu George wrote:
> Hi,
>
> What does the community think about having a portlet in the admin
> console for configuring openejb related stuff as well as displaying
> the different containers etc deployed in Geronimo. I think this may
> improve the usability of Geronimo. If there is interest I would like
> to investigate it further.
Is that a trick question? ;-) Sounds like a great idea. I'd certainly
be interested in seeing console support. Doubt that I'd be able to
help out, though...
--kevan
Re: Geronimo 2.0: customize EJB-Container settings
Posted by Manu George <ma...@gmail.com>.
Hi,
What does the community think about having a portlet in the admin
console for configuring openejb related stuff as well as displaying
the different containers etc deployed in Geronimo. I think this may
improve the usability of Geronimo. If there is interest I would like
to investigate it further.
Regards
Manu
On Jan 29, 2008 3:14 AM, Gianny Damour <gi...@optusnet.com.au> wrote:
>
> >
> > 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.
> >>
> >
>
>
Fwd: Geronimo 2.0: customize EJB-Container settings
Posted by Gianny Damour <gi...@optusnet.com.au>.
>
> 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.
>>
>
Re: Geronimo 2.0: customize EJB-Container settings
Posted by Gianny Damour <gi...@optusnet.com.au>.
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.
>
Re: Geronimo 2.0: customize EJB-Container settings
Posted by the666pack <ma...@gmail.com>.
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.
Re: Geronimo 2.0: customize EJB-Container settings
Posted by Gianny Damour <gi...@optusnet.com.au>.
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.
>
Re: Geronimo 2.0: customize EJB-Container settings
Posted by the666pack <ma...@gmail.com>.
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.
Re: Geronimo 2.0: customize EJB-Container settings
Posted by Gianny Damour <gi...@optusnet.com.au>.
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.
>