Announcement Announcement Module
Collapse
No announcement yet.
Method level security & Annotated transaction not working together Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 ="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);

    }
Working...
X