Announcement Announcement Module
No announcement yet.
Around Advice and RegexpMethodPointcutAdvisor Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Around Advice and RegexpMethodPointcutAdvisor

    I am trying to intercept struts action methods using an Around Advice.

    public class ActionInterceptor extends DelegatingIntroductionInterceptor {

    public Object invoke(MethodInvocation methodInvocation) {
    return methodInvocation.proceed();


    <!-- Method 1 This is not working -->
    <bean id="actionAutoProxy"
    class=" dPointcutAdvisor">
    <property name="pattern">
    <property name="advice">
    <ref bean="actionInterceptor"/>

    <!-- Method 2 This is working -->

    <bean id="actionAutoProxy"
    class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
    <property name="beanNames">
    <property name="interceptorNames">

    Here the Method 2 works but not the Method 2. Do we need to use a different class anywhere here ?
    Any help appreciated.