Announcement Announcement Module
No announcement yet.
Method level security & Annotated transaction not working together Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 =" palliance.MethodSecurityInterceptor">
    <property name="authenticationManager" ref="authenticationManager"/>
    <property name="accessDecisionManager" ref ="accessDecisionManager"/>
    <property name="objectDefinitionSource">
    com.patni.mfg.tsg.springapp.service.ProductManager ServiceImpl.deleteProduct=PRODUCT MANAGER
    com.patni.mfg.tsg.springapp.service.UserManagerSer viceImpl.deleteUser=ADMINISTRATOR

    (Transaction code snippet)

    (The '@' is there, not able to post it)

    Transactional(readOnly = false,propagation = Propagation.REQUIRED)
    public void deleteUser(int intUserId) {