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)

Reply via email to