Main method in tomcat?

I would like a class to be invoked the moment tomcat starts. Is there a way to do that?Please help.Thanks.
[127 byte] By [zactoraa] at [2007-10-2 20:15:42]
# 1

You may be able to use vendor-specific settings in server.xml for Tomcat (check their site for details). If not, there may be a way to hook into the Tomcat Bootstrap startup class (see their site or Google for details). More generally, why are you trying to do this? The Servlet's init() event is guaranteed to fire at Servlet startup. Why do you need something to fire at container startup rather than the Servlet?

- Saish

Saisha at 2007-7-13 22:58:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
See this link... Hope this helps.... http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_21320164.htmlCourtesy: Google.Guys simply try google before you post here... :)Thanks and regards,Pazhanikanthan. P
pazhanikanthana at 2007-7-13 22:58:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...