SpringMVC + Hibernate Error: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here

While developing a web application using SpringMVC and Hibernate I got “No Hibernate Session bound to thread Exception” becuase of some configuration issue.Here I am going to explain how I resolved the issue. I used the SpringMVC/@Controller approach and configured the Web related Spring configuration in dispatcher-servlet.xml as follows: <context:annotation-config”/> <context:component-scan base-package=”com.sivalabs”/> I have configured […]

Read More

SpringMVC3 Hibernate CRUD Sample Application

To learn any web framework starting with a HelloWorld application is a good idea. Once we get familiarity with the framework configuration it would be better to do a CRUD(Create,Read,Update,Delete) application which covers various aspects of a web framework like Validations, Request URL Mappings, Request Parameter Binding,Pre-populating forms etc. Now I am going to explain […]

Read More

SpringMVC HelloWorld Tutorial

Spring is a popular Application framework based on Inversion Of Control/DependencyInjection principle.SpringMVC is a framework following MVC architecture for building web applications. Let us see how to create simple Hello World application using SpringMVC. Step1 :Copy the SpringMVC dependent libraries into WEB-INF/lib folder.You can download the latest Spring bundle at http://www.springsource.org/download Step2:Configure the Spring’s FrontController […]

Read More

Spring+Hibernate Application with zero XML

Spring framework came up with Annotation support since 2.5 version which eases the development.Whether Annotation based approach better or XML approach is better is depends on the project and their personal preference. Let us see how we can write a Simple Application using Spring and Hibernate using Annotations, no xml at all. The configuration for […]

Read More