At the end of a bunch of hibernate calls I commit my JTA transaction, which 
calls org.jboss.hibernate.session.TransactionSynch.beforeCompletion().  Inside 
this method I see that session.flush() is called, and it's failing for me 
because of a db integrity constraint, which is fine.  However, the caller 
doesn't know that it failed because this method just catches the error and logs 
the warning.

How am I supposed to know that the session failed to synchronize with the DB 
and that I should rollback the transaction?  Am I going about this the wrong 
way completely?

Thanks,
Emily

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855290#3855290

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855290


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to