Hi,
I'm using Hibernate 2.1.1 with jBoss 3.2.2. When my Hibernate Session objects get finalized I get these strange warnings:
16:55:14,796 WARN [SessionImpl] afterTransactionCompletion() was never called
Do I have to care about these warnings? Is it possible that changes to the database are not commited when I get these warnings?
BTW I am using the recommended Hibernate session usage pattern:
Code:
Session sess = factory.openSession();
Transaction tx = null;
try {
tx = sess.beginTransaction();
// do some work
...
tx.commit();
}
catch (Exception e) {
if (tx!=null) tx.rollback();
throw e;
}
finally {
sess.close();
}