This article briefly shows the main differences between Filter an Listener in Java. Servlet Filter Filter is an object which transform the request and response (header as well as content). Servlet Filter is used for manipulating the request and response from client to the servlet, or to modify the request and response, or to audit and log. Filters […]

Read More →

Spring is the most popular application development framework for enterprise Java. It’s very popular to create high performing, easily testable, reusable code without any lock-in. The main princible behind Spring is the Inversion of Control (IoC). In software engineering, Inversion of Control (IoC) is an abstract principle describing an aspect of some software architecture designs […]

Read More →

Before going into the details of ServletContextListener we should understand what is ServletContext. ServletContext is a interface which helps us to communicate with the servlet container. There is only one ServletContext for the entire web application and the components of the web application can share it. The information in the ServletContext will be common to […]

Read More →

In this post we’ll see how to do hot-reload of properties file used by a web-application. Hot-reload is useful when we want change some property in a file without restart the application server (like JBoss). Restart an application-server (or servlet-container) means restart all the web-apps that are running under that application-server, with resulting unavailability of […]

Read More →