pull the platformtransactionmanager out and start a transaction manually, or use @transactional annotation on some bean managed by spring.
-igor On Mon, May 24, 2010 at 10:53 PM, pieter claassen <[email protected]> wrote: > I try to bootstrap my MySQL database during the wicket application strartup > but get the following error with a bootstrap method in my > wicketapplication.java. How should I best get hold of a transaction during > my wicket startup or if this is not possible, what is the most appropriate > alternative? > > Rgds, > Pieter > > > SEVERE: Exception starting filter wicket-spring-hibernate > org.hibernate.HibernateException: No Hibernate Session bound to thread, and > configuration does not allow creation of non-transactional one here > at > org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:63) > at > org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:591) > at > com.musmato.dao.application.AbstractBaseFactory.getSession(AbstractBaseFactory.java:24) > at > com.musmato.dao.application.AbstractBaseFactory.getAll(AbstractBaseFactory.java:54) > at > com.musmato.logic.users.UserTools.getUserbyUsername(UserTools.java:18) > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
