Web tier: servlets, JSP, Web frameworks: How to run code before server starts running?
Hi does any body know how can you run code from a class (not from a servlet) before the web server is actualy up and running?
- Posted by: Yair Ogen
- Posted on: October 15 2003 07:47 EDT
I'm using WAS (WebSphere Application Server) 5.0.
Search for IBM's non standard startup beans. they might be your answer.
Probably ServletContextListener sufficient for you?
Also, AFAIK, WS5 is build on JMX, so take a look at corresponding MBean(s) and their dependencies (this works perfectly with JBoss :-)