I'm using jboss 4.0.1 and hibernate 2.1
I have a stateless session bean which accesses a DAO class which has heibernate code to insert, update... I noticed that if in this DAO class I use hibernate transactions, with transaction.begin() and transaction.commit() when the transaction.commit() line is executed the database is not updated.
Why that happens? Shouldn't the data be commited to the database when commit is executed?
Other thing I tried was to use JBoss' UserTransaction class but it also didn't work. How can I be sure that when the transaction.commit() is executed the database is really updated?
Thank you
Kelly.
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: