It is finally here!!. On 12-December-2013, Spring IO has officially announced that Spring Framework 4.0 GA is available for the production use. Why there is lot of things to talk about Spring 4.0?. It is the major release after Spring 3.0 which has been released on 2009. Also Spring team has transformed to Spring IO …
JAX-RS : RESTful Webservice using JAX-RS 2.0
In this tutorial I am going to explain how to develop restful web services in java using the opensource JAX-RS 2.0 APIs. Also explains how to write JAX-RS 2.0 client API for invoking the JAX-RS 2.0 web services. In my previous post I wrote about using JAXB to marshall and unmarshal XML data and in that …
5 New Features in HTML5
This tutorial explains the 5 new features introduced in the HTML5. The features are new doctype, importing scripts and resources, image element tag, canvas element and the offline or local storage in the browser. There are many other great features in the HTML5, here I just give the overview of these 5 new features. 1. …
How To Set Tomcat JVM Heap Size in Eclipse?
If JVM head size for Tomcat is not enough, you would get the error java.lang.OutOfMemoryError. If you are using eclipse, it is easy to increase the available heap size by using the server configurations. Look at the below steps to configure the VM arguments passed to JVM for running the tomcat server. 1. Open Server …
How To Resolve “Resource Is Out Of Sync With The Filesystem” Error in Eclipse?
The error in eclipse IDE Resource Is Out Of Sync With The File system happens many time when the resource is out of sync and may be updated by some other sources. We need refresh each time by default to load that files. There is settings in eclipse to permanently fix this problem. Look at …
Update Eclipse Project Facets Using Settings File
In some cases you will not be able to change the eclipse project facets through dialog boxes. It would happen many times when you want to downgrade your versions of facets used by your eclipse project. For example, If your current project configuration is Dynamic Web Module 3.0, if you try to downgrade to 2.5, …
FreeMarker Template + Servlet Integration Example
This is my second tutorial about FreeMarker template engine. In my previous tutorial I have explained about how to create stand alone freemarker template. This tutorial explains how to integrate freemarker template to a servlet. 1. Setup FreeMarker Environemnt It is very simple to setup the freemarker environment by downloading the JAR distribution from its …
PrimeFaces Tutorial on Calendar and Input Elements
1. Introduction to PrimeFaces Input Elements This tutorial covers some of the basic primefaces UI components like p:calendar (the PrimeFaces input element for collecting dates and times), p:spinner and p:slider (PrimeFaces input element for collecting numbers). This tutorial also talks about the style of programming with PrimeFaces in JSF2, and also briefly summarizes the PrimeFaces versions of …