java - Disable oracle autocommit on close connection -


I have a question about the Oracle Autocommit on close connection events.

Notice from Oracle docs ():

If automatic commit mode is disabled and you close the connection with no explicitly made or your previous changes Let's roll back, then an implicit committ operation is run.

Therefore, I want to disable this feature in programmatic JDBC driver. I do not wan't autocommit at least one transaction closed connection, is it possible?

P.S. change the setAutoCommit JDBC operation "AutoComit" starts a new transaction on each transaction and commits the call. This is not a solution to my problem.

Edit. Possible duplicate: According to

, you should try to roll back or roll before calling the closed method. The results are otherwise implemented-defined.

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -