Saturday, January 12, 2013

Data Access With Spring JDBC (Note 1)

When developing enterprise applications, we have lots of options when it comes to the implementation of the DAO (Data access Object) layer. Either we may use an ORM framework like Hibernate, iBatis or pure JDBC. 

JDBC fulfills almost all the necessary data access requirements. and provides low level access to the data access operations. But we have to handle connections and lots of other things. 

Friday, January 11, 2013

Playnig With HTTP Methods

I am highly interested in RESTful web services these days :) . So I tried to implement my own RESTful API and wrote REST client to communicate with the service. GET, POST, PUT, DELETE are basic HTTP methods used in REST services (details of HTTP methods can be found here) . Lets see how I implemented basic CRUD operations using HTTP methods.

For the sake of simplicity I have simply echoed the request body and selected request headers back as the service implementation.

© kani.stack.notez 2012 | Blogger Template by Enny Law - Ngetik Dot Com - Nulis