Announcement Announcement Module
Collapse
No announcement yet.
Hibernate Exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hibernate Exception

    Hi
    I am new to Spring and Hibernate, I am trying to learn this technologies.
    I got <tx:annotation-driven/>
    in my hibernate context xml file. When I try to add a new record using this line of code
    sessionFactory.getCurrentSession().merge(user);
    I am getting this exception
    org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
    org.springframework.orm.hibernate3.SpringSessionCo ntext.currentSession(SpringSessionContext.java:63) .

    I have copied these configuration and code from Petclinic example.
    Please help
    Philip
    Last edited by philipj; Apr 13th, 2009, 05:30 PM.

  • #2
    No worries guys, I found the answer too.
    Philip

    Comment

    Working...
    X