[jboss-dev-forums] [Design of Clustering on JBoss (Clusters/JBoss)] - Exception Handling between Jboss 3.2.6 & JBoss4.0.5GA
Anandnatraj
do-not-reply at jboss.com
Fri Aug 31 02:39:37 EDT 2007
Do we have any difference in the way the Exception are handled with Jboss3.2.6 and JBoss4.0.5GA? I have one scenario where from the Program I am throwing the SystemException Manually but the exception message thrown seems to be different..
Scenario:
1. Complete Step 1 (WIth one transaction)
Status: data are changed in accordance with Step1 usecase
2. Complete Step2 (With new transaction). We are throwing System Exception manually.
In jboss-3.2.6
==========
Step1 started with new transaction and process gets committed since no system exception is thrown.
Step2 started with new transaction but gets rolled back since System Exception thrown and also further execution stops. This behavior is as expected
In jboss-4.0.5.GA
=============
Step 1started with new transaction and process gets committed since no system exception is thrown.
In Sample Prep Conversion Call type while getting rollback because of system exception ?java.lang.IllegalStateException: setRollbackOnly() not allowed without a transaction? is thrown. Seems the transaction is not created.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079839#4079839
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079839
More information about the jboss-dev-forums
mailing list