Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does catching an SQLException mean that the transaction was definitely not completed and/or that the invoked method did not execute?

0
Posted

Does catching an SQLException mean that the transaction was definitely not completed and/or that the invoked method did not execute?

0

Location: http://www.jguru.com/faq/view.jsp?EID=431032 Created: May 30, 2001 Author: Joe Sam Shirah (http://www.jguru.com/guru/viewbio.jsp?EID=42100) Not necessarily, and, unfortunately, there is no generic means of determining current state. As noted in JDBC API Tutorial and Reference, 2nd Ed: Java 2, “The safest course is to call the method rollback when there is any doubt and then to start again.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123