Hello Community,
Iīm new to Spring-AOP and have a question concerning aspectjweaver.jar.
first the story:
I tried to do some performance-logging with the JamonPerformanceMonitorInterceptor which is included in spring.jar (2.5.6).
In my aspects-configuration.xml iīve defined something like:
Everything works fine (every refresh methode is correct logged) when iīve include the aspectjweaver.jar in my classpath.Code:<aop:config> <aop:pointcut id="jamonMonitoringPointcut" expression="execution(* x.y.MyClass.refresh(..))" /> <aop:advisor pointcut-ref="jamonMonitoringPointcut" advice-ref="jamonMonitoringAspectInterceptor" /> </aop:config> <!-- Performance Monitoring Bean--> <bean class="org.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor" id="jamonMonitoringAspectInterceptor"> <property name="loggerName" value="Profiler" /> </bean>
If iīve not included aspectjweaver.jar in my classpath, i get an exception while starting my application:
1. I thought i only need to include aspectjweaver.jar in my classpath, if i want to enable @AspectJ support (spring documentation 6.2.2).Code:... Caused by: java.lang.ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException
What does is mean 'to enable @AspectJ support'? I havenīt used some aspectj-style annotations.
2. Is it possible to uses the JamonPerformanceMonitorInterceptor with using some XML based pointcut expressions like defined above without to include this aspectjweaver.jar?
thanks


Reply With Quote