Hi everyone!
I hope this is not a stupid question, but I'm quite tired at this hour, and can't think anymore...
I have a problem with compiling JasperReports inside a web-application that is run in Weblogic.
It's the same problem that this guy here noticed, but no solution was found:
http://forums.oracle.com/forums/thre...00308&tstart=0
Now, that is not related to Spring AOP, but this is:
I wanted to trace the calls made by the JasperReports compiler and I tried to add an advisor like this:
Unfortunately the first problem that I found is that some of the methods that I wanted to trace are actually static methods (class methods), and static methods cannot be intercepted with Spring AOP...Code:<aop:config> <aop:advisor advice-ref="simpleTraceInterceptor" pointcut="execution(* net.sf.jasperreports.engine..*.*(..))"/> </aop:config> <bean id="simpleTraceInterceptor" class="org.springframework.aop.interceptor.SimpleTraceInterceptor"> <property name="useDynamicLogger" value="true"/> </bean>
But moving on... there are still some non-static methods (instance methods) around there that I would like to trace.
But they seem to not be intercepted in any way...
Probably because they are not instantiated/managed by Spring.
Is there any way to intercept such third-party methods with SimpleTraceInterceptor?



Reply With Quote