This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CORBA.TRANSACTION_ROLLEDBACK in Websphere

 
Kamal Kishore
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
The scenerio here is
JSP - Session Bean - Entity Bean - Oracle database
Application Server - Websphere
I am getting CORBA.TRANSACTION_ROLLEDBACK exception when the CMP entity bean is interacting with database.
This exception is being thrown whenever there is an error in database side while inserting or updating the data through Entity Beans.
My question is how to trap the specific database error in EJB client wherein I am always getting TRANSACTION_ROLLEDBACK exception which doesn't specify the exact error.
Thanks in advance for reply.
Kamal
 
Caroline Iux
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My suggestion would be in your server-side code, catch SQLException and throw an application exception with the original exception details and probably theh SQL statement as well. That will at least give you a clue where to start and what might go wrong.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TRANSACTION_ROLLBACK is the most general WebSphere EJB exception. The other exception is actually wrapped within it. You can look in the stdout log file and it will include all of the SQL exception information you need.
Kyle Brown
------------------
Kyle Brown,
Editor of Enterprise Java (tm) Programming with IBM Websphere
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic