1. Does Java Connection.close rollback? stackoverflow.comDoes Java Connection.close rollback into a finally block?. I know .Net SqlConnection.close does it. With this I could make try/finally blocks without catch... Example:
|
2. When should we call connection.rollback() method? stackoverflow.comPlease let me know when do we require to call the method connection.rollback();
|
3. Is rollback needed if java.sql.Connection#commit() throws exception? stackoverflow.comAccording to JAVA documentation,
|
4. Java, JDBC connection pool, JDBC connection rollback stackoverflow.comWe have a database connection pool (java JDBC). Every time we checkout, we first do preemptive connection rollback to avoid connection exceptions. Please ignore the business case. Just from technical ... |
5. How to handle sql exception for Connection.rollback coderanch.com |
6. How can I rollback when connection close? coderanch.comI work with Oracle (jbdc) in web developpment. Presently with java, when we close the Oracle Connection, a commit is made automatically. I want to change it to an automatic rollback when I close the connection (myConn.lose() ). The reason is when a user submits a form (in the browser) and he clicks the stop button before the process is terminated, ... |
7. connection rollback/ atomic transaction problem coderanch.comHi, I have a problem. I am using JSF1.1, EJB2.x, JDBC and weblogic8.1sp6. the structure of the application is like this, jsf bean calls facade bean(which is stateless session bean) method. facade bean method calls dao method to perform database insert/updates. the trasaction attribute of facadebean's method is set to required in ejb-jar.xml. now I create connection in the dao method ... |