We have Spring MVC based web-app having service method attributed with @Transactional(readonly=true).
I was expecting spring to throw exception because we have method which is committing data in mysql db.
Can anyone help me out why transaction attribute (Readonly) related exception is not thrown ?
below mentioned is code...
@Service
@Transactional
public class AppService {
... @Autowired Dao
public int createApplication(AppVO vo){
....
}
}