Is there any way to initialize a class during deployment?
posted 5 years ago
You can use a ServletContextListener to perform some action when the web app starts or stops. Example Put your initialization code in the contextInitialized method and it will run when the application is started.
Author and ninkuma