Hi,
I'm new to hibernate and having some trouble running the "first Hibernate Application" in hibernate-distribution-3.3.1.GA (hibernate-distribution-3.3.1.GA\project\tutorials\web)
The web app works fine, but when I try and run it as a standalone app (ie. running the EventManager class passing in the param "store" or "list") I get the error:
Code:
Exception in thread "main" org.hibernate.HibernateException: No session currently bound to execution context
at org.hibernate.context.ManagedSessionContext.currentSession(ManagedSessionContext.java:74)
at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:574)
at org.hibernate.tutorial.web.EventManager.listEvents(EventManager.java:78)
at org.hibernate.tutorial.web.EventManager.main(EventManager.java:20)
I tried with Hibernate 3.2 and that works. Any suggestions on what I need to do in order to run this as a standalone app in 3.3.1 please?
Many thanks,
Andrew.