This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

When posting code please use [ code][/code ] tags. The advantages is that you don't have to specify the SessioJNfactory and creating the HibernateTemplate yourself. That is it.

Next to that it isn't recommended anymore to use HibernateDaoSupport or HibernateTemplate (if you are on Hibernate version > 3.0.1). Simply use the plain hibernate api. Why, search the forum I answered that question a couple of times.