-
Sep 16th, 2008, 12:31 AM
#1
Method level security & Annotated transaction not working together
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>
(Transaction code snippet)
(The '@' is there, not able to post it)
Transactional(readOnly = false,propagation = Propagation.REQUIRED)
public void deleteUser(int intUserId) {
userDao.deleteUser(intUserId);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules