Loading Java Properties from file
| Nov 09, 2012Normally, Java properties file is used to store project configuration data or settings. In this tutorial, we will show you how to read and write to/from a properties file.
Read More →
Normally, Java properties file is used to store project configuration data or settings. In this tutorial, we will show you how to read and write to/from a properties file.
Read More →
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 →
In this article we will see how to access a database using JDBC and Spring. In JDBC 2.0 or higher, you can obtain database connections from a preconfigured javax.sql.DataSource object without knowing about the connection details. On the other hand, Spring allow to define a datasource configuration as bean in the IoC container. This bean […]
Read More →
In this article we will see how to implement a REST services with Spring with a classic example…the Employees!! We’ll see a simple application that manages a list of employees and exposes three web services: GetEmployes GetEmployees AddEmployee
Read More →
In this post we will see how to define a simple servlet with Spring framework. We will use as simple example of an application that calculate the distance betweed two cities and shows the results in a JSP page.
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 →