Removing Attributes on ServletContext (Application Scope) in Tomcat manually

366 Views Asked by At

Hi Stackoverflow peeps,

I'm just wondering if there are way to remove application scope attributes in your web app. I know how to delete it in a code way, like using this:

ServletContext application = getServletConfig().getServletContext();
application.removeAttribute("sampleInfo");

But the problem is the application is currently on the production now. So, is there a way to remove it like flushing something on the server side (Tomcat), because I tried to shutdown and start the tomcat, but the attribute is still there.

0

There are 0 best solutions below