In my Spring's context file I have defined datasource using:
Now in my application code I am taking Connection using dataSource.getConnection();
My qiery is that After running sql quries should I write code to rollback() or commit() manully.
From my understandin g Spring is reponsible for automatically doing so.
Prashant R Kataria
posted 6 years ago
There are two types of transaction management
Programatic: What you just did.
Declarative: Which will use aop of spring and do comit and rollback for you as per the configuration provided.