Hi,
I want to load a class in the memory when the tomcat server starts.
Basically this class has some static data which I want the application to
use. I want to keep the data at application level.
Regards,
Pankaj
Pankaj Chhaparwal wrote:
Hi,
I want to load a class in the memory when the tomcat server starts.
Basically this class has some static data which I want the application to
use. I want to keep the data at application level.
Regards,
Pankaj
Hi :-)
- in Servlet spec2.3, there is a new
If your class is a servlet you may want to use
load-on-startup
1
/load-on-startup
in your web.xml
hth
*
* Boris NiyazovPh: 212-854-4094 Fax: 212-854-1749 *
* Systems Manager