Announcement Announcement Module
Collapse
No announcement yet.
Pls. Help Problem with before advice Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pls. Help Problem with before advice

    Hi,

    I have configured an MethodBeforeAdvice on a method of a particular class as below :

    <aop:aspect ref="SecurityAspect">
    <aopointcut id="myCutSecurity"
    expression="execution(* com.sp.cms.ce.command.SmartworkCommandHandlerImpl. *(..))"/>
    <aop:before pointcut-ref="myCutSecurity" method="checkSecurity"/>
    </aop:aspect>


    I have observed that it is able getting invoked when i call this through one method but the same is failing if it is called from some other method.

    The beans which are invoking the above method are as follows :

    <bean id="referDataMajorRegionHandler"
    class="com.sp.cms.ce.refdata.impl.handler.Referenc eDataMajorRegionHandler">
    <property name="commandHandler">
    <ref local="smartworkCommandHandlerImpl" />
    </property>
    <property name="smartworkCommand" ref="ceSmartworkCommandRPM" />
    </bean>

    It is successful in the above case , but it is failing when the method is called from baseBo class.


    <bean id="baseBO" abstract="true"
    class="com.sp.cms.core.biz.BaseBO">
    <property name="commandHandler"
    ref="smartworkCommandHandlerImpl" />
    <property name="smartworkCommand" ref="ceSmartworkCommand" />
    </bean>

    Appreciate your support on this.

    regards,
    Rani.
Working...
X