Wednesday, 11 March 2015

RESTFull Webservice : Summarised overview

RESTfull Introduction :

It is a concept to create such an application who can response to client in multiple formats of data (xml, JSON, HTML etc).And this application you can say a "WEBSERVICE".

JAX-RS :

When RESTFull concept introduced in the market, after that Java supported this concept. JAVA created a specification JAX-RS. It is an API.

Jersey :

Jersey is a implementation  of JAX-RS. Jersey is full fledge API and can be use in applications to create a proper RESTfull webservice.

RESTfull - JAXB :

JAXB also supporting RESTfull to create response XML in minimum efforts. JAXB providing few annotations  (@XmlRootElement), which are helpfull to create RESTfull webservice in minimun code.

RESTfull - Spring4.0 :

Now Spring4.0 also providing some features, using which RESTFull webservice can be created very easily. 
@RestController is very important annotation which is used to create RESTFul webservice.

Hibernate : Dirty checking Vs Dynamic-update

Dirty Checking :
 Suppose a list of collections is there and few of them are updated/modified. Hibernate will verify updated/modified each collection and then it will save it to DB. This is called dirty checking.

Dynamic-upadate :

If a particular Entity is updated/modified with few columns and saving this to DB, this can be done using dynamic update property. In configuration file of table (Entity xml), dynamic-update=true can be mention to enable this feature of hibernate. Highly recommended to use this to save the time and increase the performance.

Dirty Checking : List of collections
Dynamic-update : Single Entity

If am wrong at any point, u people can correct me please...