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, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
with
) has closed the connection by the time the exception handler is invokedtry
.