You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fa...@firstunion.com on 2000/09/15 17:10:10 UTC
Web Application initialization on startup
Hi,
I would like to execute some initialization code each time I start Tomcat
or redeploy my Web Application.
Specifically, in the startup process, I would like to create several
JavaBeans of the application scope.
Those JavaBeans will be accessed by the JSP pages.
I tried putting this iniatialization code into the starting JSP page of my
application, but it's not convenient: each time I restart Tomcat (or
application) I will have to access that page in order to get things
initialized.
I was hoping to find some way of telling Tomcat to execute some code each
time the application starts.
Is there any way to do that? If not, what are possible workarounds?
Thanks,
Faustas