There are many approaches one can take depending on your architecture.For simple web applications, I find it easiest to implement a javax.servlet.ServletContextListener. Place your application initialization code in the void contextInitialized(ServletContextEvent event) method.
Register your listener in your web.xml file.
Paul Rob Dennett wrote:
Is there a standard way to initialize a Tapestry 4 app on startup? I found a message in the archives which used a custom servlet loaded after the ApplicationServlet to do that, but it seems like there should be another way of doing it.Thanks for your help, Rob
smime.p7s
Description: S/MIME Cryptographic Signature
