Hi. I'm having problem doing transaction rollback. I'm using weblogic 5.1 (sp5) with oracle as database. Our entity beans are BMP while transactions are container managed.
Below is the pseudo code of the methods involved:
Problem encountered:
--------------------
) If method does not declare to throw javax.transaction.RollbackException,
java.rmi.UnexpectedException is caught by
JSP.
If method declares to throw javax.transaction.RollbackException,
javax.transaction.RollbackException is caught by JSP.
In either case, the status flag is not returned. Hence, I'm not able to handle the application exception properly - display error message depending on where the code fails.
Note that RollbackException is a child of Exception class, while
TransactionRolledbackException is a child of RemoteException class.
My colleague tried the code on
J2EE RI and the code runs okay. What seems to be the problem?
[This message has been edited by ST Moong (edited July 04, 2001).]
I just edited the post to put the code in a code block for enhanced readability - George
[This message has been edited by George Brown (edited July 04, 2001).]