• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with transaction roll back

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
ST Moong
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tested using SP9 - the latest SP for 5.1
It fixes the UnexpectedException problem, but, it is still throwing javax.transaction.TransactionRolledbackException. Which means still cannot get the return value.
The guys in weblogic say it is fixed in WLS6.0 and 6.1. I have not tested on both.
 
ST Moong
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tested on Weblogic 6.0 SP2
The rollback now works properly. So, for those facing this problem, maybe try to update to WLS6 if you can't find a workaround.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic