Hibernate transaction missing problem

infectedrhythms voodoo at videotron.ca
Tue Jun 23 10:32:37 EDT 2009


Make sure you are not sharing the hibernate session in the handler I.e: you
handler should be stateless.




lpeagle wrote:
> 
> Hi,
> 
> My business layer is using Dao with Hibernate, it works fine with unit
> tests. But when I try to call it from my Netty handler, I always got
> something like this:
> org.hibernate.HibernateException: createCriteria is not valid without
> active transaction
> 
> Any clue that why the transaction is missing even after I have called
> beginTransaction on the session?
> 
> Configuration of hibernate:
> <property
> name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
>                 <property
> name="current_session_context_class">thread</property>
> 
> Thanks a lot!
> 
> Bill 
> 

-- 
View this message in context: http://n2.nabble.com/Hibernate-transaction-missing-problem-tp3137625p3142820.html
Sent from the Netty User Group mailing list archive at Nabble.com.




More information about the netty-users mailing list