Sunday, February 1, 2015

Using Spring with Hibernate and c3p0 Connection Pool.

C3P0 is a very nice tool to manage database connections. I had hard time configuring Apache DBCP/2 so tried C3P0 and it was very easy to use.. There are many config options to set and the setting has to be done carefully so that we do not end up choking our database. Lets understand some the config options. testConnectionOnCheckin validates the connection when it is returned to the pool. testConnectionOnCheckOut would...

Saturday, September 20, 2014

Jackson JSON parser - Writing Custom Deserializer

One of major difference between Jackson and GSON is how they handle json parsing and mapping the json to a class object. While doing so Jackson uses strict checking which means the object from which the json was created and the class to which the json has to be mapped should be in strict sync. Consider the following example - class Foo { private String value; } class Bar { private...

RestEasy 3.0

We were using RESTEasy 2.0 in on of our earlier projects. RESTEasy is a JBoss project that provides various frameworks to help you build RESTful Web Services and RESTful Java applications. The 2.0 version was quite simple to use. I decided to use version 3.0 in one of recent projects and the migration was not that tough. A lot of chages have been done in the newer version. I am going to mention...

Friday, September 19, 2014

Amazon RDS with MySql - How to create an instance!

This post will guide through how to use Amazon RDS, the steps of creating an instance and other related things. Before going further one can take a look on few links to get a hang of what RDS is all about and how does it perform against other available solutions. Amazon RDS vs DIY MySQL on EC2...

Thursday, October 25, 2012

A Bong Land Away From Bengal

Chittaranjan Park (Bengali: চিত্তরঞ্জন পার্ক), aka C.R. Park is a neighborhood in South Delhi, and home to a large Bengali community in Delhi. That's a very known fact. People say, if you want to get a feeling of how Durga Puja is celebrated in West Bengal, then go to this place. I visited this place on the last day of Puja and witnessed the show...

Sunday, September 23, 2012

It Was Dreddfully Fantastic

Cast: Karl Urban, Olivia Thirlby, Lena Headey, Wood HarrisDirector: Pete Travis For a long time we all have been waiting for a perfect action movie where there is no Super-hero but a bad-ass toughie. Lessons, protagonism and philosophy ruin the essence of action. A perfect action flick is the...

Monday, September 17, 2012

Barfi - The New Face Of Indian Cinema

“Man's mind, once stretched by a new idea, never regains its original dimensions.”  What will you remember the year 2012 for? I shall ever remember it for some of the greatest movies our quality deprived Indian Cinema produced. Seems like all the film-makers have suddenly realized that  all...