This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Method level security & Annotated transaction not working together

Sep 16th, 2008, 12:31 AM

We have declared method level security using MethodSecurityInterceptor on some of our methods. We also have declared annotation based transaction on those methods.
It is observed that in this scenario the security stops working and only the transaction works. We have faced similair situation with method level security
and AOP logging.
Is there any problem with method level security ?
Code snippets : (method level security)
<bean id="securityInterceptor"
class ="org.springframework.security.intercept.method.ao palliance.MethodSecurityInterceptor">
<property name="authenticationManager" ref="authenticationManager"/>
<property name="accessDecisionManager" ref ="accessDecisionManager"/>
<property name="objectDefinitionSource">
<value>
com.patni.mfg.tsg.springapp.service.ProductManager ServiceImpl.deleteProduct=PRODUCT MANAGER
com.patni.mfg.tsg.springapp.service.UserManagerSer viceImpl.deleteUser=ADMINISTRATOR
</value>
</property>
</bean>