Hello,
First congratulations for a great work. I've look at the code to see if I can help
to fix this. As I see it the Transaction system detects the conflict and changes both
transaction status to
Status.STATUS_ROLLEDBACK;
at DummyTransaction.commit() but it doesnt communicate the exception. Should the
transaction state be checked after the commit to force the rollback?. Maybe a rollback
exception could be thrown at the commit method.
| public void commit()
| throws RollbackException, HeuristicMixedException,
| HeuristicRollbackException, SecurityException, SystemException {
|
| status=Status.STATUS_COMMITTING;
| try {
| notifyBeforeCompletion();
| status=Status.STATUS_COMMITTED;
| notifyAfterCompletion(status);
| }
| catch(Throwable t) {
| status=Status.STATUS_ROLLEDBACK;
|
| /*********************** NEW CODE **************/
| throw new RollbackException(t.getMessage());
| /****************************************************/
|
| }
|
| // Disassociate tx from thread.
| tm_.setTransaction(null);
| }
|
Thanks
Alvaro
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835326#3835326
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835326
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development