Stefan Zoerner wrote:
> Hi all,
> 
> I try to figure out what the best way for an arbitrary extension to
> tomcat would be. If I implement my own realm, valve etc., there are
> specific interfaces with corresponding life cycles. But how about
> extension which are not standard components?
> 
> If I have a class which implements org.apache.catalina.Lifecycle, it has
> nice methods for starting and stopping.  But I see no chance to add such
> a general thing in the server.xml. Or do I miss something?
> 
> An idea that works is implementing LifecycleListener, which can easily
> be added to server.xml on many places ("<Listener />"). If I add it on
> server level for instance, I get events if the server starts, stops etc.
> and can react. But I have to call my life cycle methods (e.g. start and
> stop from the Lifecycle interface) on my own.
> 
> Is there any generic way to implement a custom component, which has a
> lifecyle, and can easily be added to the configuration?

It might seem odd but since you are using Tomcat rather than changing
the source code, this question belongs on the users list. The dev list
is solely for the development *of* tomcat.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to