java - Spring aspect now working with identical configuration in similar project -


i have 2 war project similar project have common configuration:

<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xmlns:util="http://www.springframework.org/schema/util" xmlns:aop="http://www.springframework.org/schema/aop"     xsi:schemalocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd         http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd">      <aop:aspectj-autoproxy proxy-target-class="true" />      <bean class="config.store.persistentaspect">     </bean> 

aspect method is:

@afterreturning("@annotation(org.springframework.jmx.export.annotation.managedoperation) && !execution(* get*(..)) && !execution(* is*(..)) && !execution(* reset())") public void do(joinpoint jp) { } 

when see application log aspect inicialized in both project. problem aspect works in 1 project , in second no.

when turn of logging org.springframework can see, in project works, line:

01:59:31.299 [rmi tcp connection(4)-127.0.0.1] debug org.springframework.beans.factory.support.defaultlistablebeanfactory - returning cached instance of singleton bean 'config.store.persistentaspect#0' 

in second no. how should debug , find why no working ? can stop working aspect ? aspect ?

ok

when turn on logging on whole spring found this:

bean 'myclass' of type [class myclass] not eligible getting processed beanpostprocessors (for example: not eligible auto-proxying) 

i wonder why not @ least warning debug info. , solution still suitable in multithreading application web services ?


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -