Repository navigation
Transaction rollback best practices when using connection pooling #197
|
Hello, What would be the best practice when executing insert/update/delete statements with connection pooling?
i get the following message: When i run the following code i get the message displayed below(says connection has already been closed): If i remove i can catch the exception: I would like to make sure, in case any of these insert statements fails, the changes wont be committed and the rollback is performed. Is this possible? BR, |
Answered by
cjbj
Jun 22, 2023
Replies: 1 comment 3 replies
|
3 replies
Answer selected by
urosdigital
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with) has closed the connection by the time the exception handler is invokedtry.