SQLException « Transaction « Spring Q&A





1. why does transaction roll back on RuntimeException but not SQLException    stackoverflow.com

I have a Spring-managed service method to manage database inserts. It contains multiple insert statements.

@Transactional
public void insertObservation(ObservationWithData ob) throws SQLException 
{
    observationDao.insertObservation(ob.getObservation());
       ...

2. Could not open JDBC Connection for transaction java.sql.SQLException: ORA-00923:    forum.springsource.org

Could not open JDBC Connection for transaction java.sql.SQLException: ORA-00923: Hi, I need to read the contect from csv file and need insert in to oracle database. I got that exact link(http://www.ecomputercoach.com), ...

3. throw sqlexception but no rollback    forum.springsource.org

throw sqlexception but no rollback hi all, I am following the example to test the transaction management function of springframework core 2.5.6 http://static.springsource.org/sprin...on-declarative it works in throw the example exception 15:07:52,392 ...

4. java.sql.SQLException: Cannot call Connection.commit in distributed transaction    forum.springsource.org

java.sql.SQLException: Cannot call Connection.commit in distributed transaction Hi, I am using Hibernate to do the data base operations. its running on the weblogic server. I am getting the following error while ...