Hibernate transaction missing problem
lpeagle
lpeagle at gmail.com
Mon Jun 22 12:06:52 EDT 2009
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-tp3137171p3137171.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list