-
Oct 22nd, 2007, 06:51 AM
#1
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">
<aop
ointcut 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.
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