Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why am i not seeing the most recent updates made to the servlet, from my browser even though i am clicking on Refresh button and removed all the cache from the browser?

0
Posted

Why am i not seeing the most recent updates made to the servlet, from my browser even though i am clicking on Refresh button and removed all the cache from the browser?

0

This is actually one of the features of Servlet. The first time when the Servlet is invoked, then the init() method is called. So once the Servlet is loaded into memory, it will stay there until the server is restarted. According to specs, the Servlet should reload itself when there is a change in the code or new class is created. But because of performance reasons, most of the Servers don’t check for this option and the Same old Servlet is used which is currently in memory for all requests. In JRun, you need to click on the restart button. Any other solutions to this one are welcome. Tomcat requires you to just replace the WAR file.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123