I wish to set up a few application wide variables with servletContext.setAttributes on servlet context initialization phase .How can I achieve this.
I wish to set up a few application wide variables with servletContext.setAttributes on servlet
Share
Implement
javax.servlet.SevletContextListenerwhich gets a callback whenjavax.servlet.ServletContextis initialized.Here is the example: