Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC Transaction in a Stored Procedure call  RSS feed

 
amit punekar
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!