How to run code before server starts running?

Discussions

Web tier: servlets, JSP, Web frameworks: How to run code before server starts running?

  1. How to run code before server starts running? (2 messages)

    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?

    I'm using WAS (WebSphere Application Server) 5.0.

    Thank's

    Yair Ogen
  2. Search for IBM's non standard startup beans. they might be your answer.

    David
  3. 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 :-)

    Regards,
    VS