Now that we have Lifecycle Listeners, I want to start a little
discussion around some of the Tomcat listeners that come standard
installed in their container and whether we include them or not in the
default plan.

Currently Tomcat has the following listeners attached to their
standalone container:

(Full package names included here for folks who want to look at the
Tomcat source)
org.apache.catalina.core.AprLifecycleListener
org.apache.catalina.mbeans.ServerLifecycleListener
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
org.apache.catalina.storeconfig.StoreConfigLifecycleListener

AprLifecycleListener - Init and and destroy APR.

ServerLifecycleListener - Instantiates the set of MBeans associated with
the components of a running instance of Catalina.

GlobalResourcesLifecycleListener - Instantiates the set of MBeans
associated with global JNDI resources that are subject to management.

StoreConfigLifecycleListener - Load and Register StoreConfig MBean
Catalina:type=StoreConfig,resource="url"


I think we can rewrite our own ServerLifecycleListener to have Tomcat
use our mbean server instead of them creating their own.  That would
allow their objects show up in our server, so I think we should add
something like that class.

The GlobalResourcesLifecycleListener and StoreConfigLifecycleListener I
am not sure if we need, but if we were to use them we may want our own
impls to it follows our Object naming scheme.

But most importantly I want to talk about the AprLifecycleListener.  I
really think we should add this as a default listener in the plan
because this will allow people to use a netive APR connector and
*really* get some incredible performance out of Geronimo.  For those not
familiar with APR, its the Apache Portable Runtime project.

http://apr.apache.org/

It basically will test if you have compiled natice binaries for your
platform, and if it find them, it will use those instead of hte pure
java implementation.  The listener is really for initialization and
destruction on start/stop of the server, so there is no overhead.  This
can really give Geronimo a performance boost, especially for those who
use it in a high load site.

Thoughts and opinions on me enabling that listener?  Also thoughts on
some of the other listeners would be good as well.

Thanks,


Jeff

Reply via email to