I am trying to implement JDBC transaction through SPring AOP
What I expect this to do is, if , inside a method (matching the regular expression) I throw a DatabasePersistenceException (a RuntimeException in my case), I expect the JDBC insert/update/delete operations to be rolled back since the datasource object that I am doing JDBC operations on is same as the datasource object in my TransactionManager object. However this isnt working as intended. The JDBC operations arent being rolled back even if I throw the specified exception. I am doing the database operations using Spring's JdbcTemplate class.
Please suggest what I might be missing here.
Certifications: SCJP (2005), SCWCD (2006), OCA (2006), WAS Admin (2007), SCBCD (2008), SCJD (2009), SCDJWS(2009)