Announcement Announcement Module
Collapse
No announcement yet.
autoproxy method interceptors for all beans in application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • autoproxy method interceptors for all beans in application

    Hi,

    we have used spring for action injection, now the requirement is, i have to print on console each and every method name and class name (that is for each and every bean in configuration file) on run-time invocation, for that i have followed

    <bean class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
    <property name="beanNames"><value>jdk*,OnlyJdk</value></property>
    <property name="interceptorNames">
    <list>
    <value>beforeInterceptor</value>
    </list>
    </property>
    </bean>


    but it is not working please help me out

  • #2
    Hi ,

    Can you send the entire XML file beacuse from the above example,the value which you have specified is "beforeInterceptor" is just a value.Its should be a reference to one of the SpringsInterceptor .

    kartik

    Comment


    • #3
      Hi

      Following is my xml file


      <bean id="beforeInterceptor" class="com.mycompany.interceptors.MyMethodIntercep tor">
      </bean>



      <bean class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
      <property name="beanNames"><value>jdk*,onlyJdk</value>
      </property>
      <property name="interceptorNames">
      <list>
      <value>beforeInterceptor</value>
      </list>
      </property>
      </bean>

      Comment

      Working...
      X