wood burning stoves 2.0*
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


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: 513
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
 
GeeCON Prague 2014
 
subject: JDBC Transaction in a Stored Procedure call