[ 
http://jira.jboss.com/jira/browse/JBAS-1576?page=comments#action_12316735 ]
     
Steve Ebersole commented on JBAS-1576:
--------------------------------------

The TransactionSynch is no longer needed in the new integration code.  The new 
code will upgrade to Hibernate3, where we added the capability inside Hibernate 
itself to track "current" session (by transsaction).

The needed work is all done in my local sandbox, but unfortunately I cannot 
commit it until after 4.0.2 has been released.  I'll leave this case open util 
after I can commit this new stuff.

> Hibernate TransactionSynch should rollback transaction on session.flush 
> exception
> ---------------------------------------------------------------------------------
>
>          Key: JBAS-1576
>          URL: http://jira.jboss.com/jira/browse/JBAS-1576
>      Project: JBoss Application Server
>         Type: Bug
>   Components: Hibernate service
>     Versions:  JBossAS-4.0.1 SP1, JBossAS-4.0.1RC1, JBossAS-4.0.1 Final, 
> JBossAS-4.0.0 Final
>  Environment: jboss 4, hibernate 2.2
>     Reporter: Armin Haaf
>     Assignee: Steve Ebersole

>
>
> org.jboss.hibernate.session.TransactionSynch only logs a error on session 
> flush in beforeCompletion:
>          try
>          {
>             log.trace("Flushing Session");
>             session.flush();
>          }
>          catch(Throwable t)
>          {
>             log.warn("Error flushing session");
>          }
> This leads to inconsistent transactions. A transaction is commited, but 
> should be rollbacked on a session.flush problem. In my opinion it should 
> throw a RuntimeException to rollback the transaction. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to