11/11/2005

Hibernate with Portlets

I find the use of hibernate as a boon to Portal projects. Well there will be a few who wont agree with me. I guess the fundamental thing that makes portlets a step ahead of Servlets is that they can completely be developed as separate components that are easily deployable to the Portals.

Portlets are presentation specific and does not provide any specification for how the backend database. Its up to the developers to decide how they are connecting to the database. I find the Hibernate as the most appropriate answer for the portlets projects.

  • It makes the portlets project easily configurable for any relational database.
  • Provides the POJO classes to use.
  • Lightweight then EJBs no Entity beans etc.
  • Good transaction and rollback functionality.

The only reason why Hibernate might not be used is because of extra complexities it adds and many of the Open Source Portals are now using the Hibernate. Thus it might need some extra work to resolve any issues of jar files and classes being clashed. It might not of much to use the Hibernate for smaller portlets based products, but for the bigger projects these complexities can be dealt with.

1 comment:

Punit Pandey said...

Due to this jar hell problem, we are planning to dump Hibernate from our portal project. It takes vendor independance away from jsr 168.