File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and Other Java EE Technologies and the fly likes Handling SQLExceptions in java ..Urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "Handling SQLExceptions in java ..Urgent" Watch "Handling SQLExceptions in java ..Urgent" New topic
Author

Handling SQLExceptions in java ..Urgent

Venkataramu Pendiyala
Greenhorn

Joined: May 16, 2001
Posts: 25
I have a database trigger in oracle. When I call setXXX() of CMP on my table the trigger is implicitly fired . But When I run my application which is calling above CMP I am getting TransactionRolledBackException. Pls guide me how to handle database failures such as improper triggrr,SQLExceptions in my java code.
Is it that Java does not handle all of the trigger related exceptions?
Is it because of the EJBs whose internal functionality is unknown to the application?
Would appreciate quick reply

SCJP
 
 
subject: Handling SQLExceptions in java ..Urgent
 
Threads others viewed
help needed with calling a stored procedure from CMP
Calling Java Application from Database trigger
How can I distinguish between a timeout and other types of exceptions when executing a statement?
inserting blob with CMP
Fire a trigger from an external application on database update
MyEclipse, The Clear Choice