Also I found that in my hibernate.cfg.cml ..Autocommit is set to true .. I have changed it to false .. but no success.
<property name="connection.autocommit">true</property>
One basic question...
Type: Posts; User: springappy; Keyword(s):
Also I found that in my hibernate.cfg.cml ..Autocommit is set to true .. I have changed it to false .. but no success.
<property name="connection.autocommit">true</property>
One basic question...
Thanks for the reply :)
I have added proxy-target-class="true" in my applicationContext.xml
And removed the catch() block,
But still I am facing the same issue ., rollback is still not happening...
Incase of DAO s extended by HibernateDAOSupport classes, I tried transcations to work with annotation based declaration:
-defined transaction in confg.xml
eg
<!-- enable the configuration...
Service Class :
public class Insert{
private InsertDAO dao;
@Transactional(propagation=Propagation.REQUIRES_NEW)
public Long insertValue(abcVO abc){
dao.insertValue(abc)
}
}
Incase of DAO s extended by HibernateDAOSupport classes, I tried transcations to work with annotation based declaration:
-defined transaction in confg.xml
eg
<!-- enable the configuration...