This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes JDBC Transaction in a Stored Procedure call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC Transaction in a Stored Procedure call" Watch "JDBC Transaction in a Stored Procedure call" New topic
Author

JDBC Transaction in a Stored Procedure call

amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 511
Hello,
Consider that we are executing a stored procedure using CallableStatement.
We have started the transaction in Java code and the Stored procedure being called also starts its own transaction.
As JDBC does not support nested transaction would this fail or the transactional context that was started in Java application will be suspended until the procedure is executed?
I encountered this question while reading something and at the moment do not have much resources to run this scenario.

Thank you in advance,
Amit
 
jQuery in Action, 2nd edition
 
subject: JDBC Transaction in a Stored Procedure call
 
Similar Threads
record insertion
JDBC Oracle connection/statement problem.
Rewriting SQL Stored procedure with Hibernate
Using JDBC for a remote call in Oracle
Problem using Callable Statement