I'm trying to do simple profiling on the BlockingQueue class. I've defined a 
pointcut as such:

   <bind pointcut="call(public * 
$instanceof{java.util.concurrent.BlockingQueue}->*(..))">
  |        <interceptor class="com.foo.aspects.TimingInterceptor"/>
  |    </bind>

However, calls to the queue are not intercepted. I did the same with 
ThreadPoolExecutor and the only calls that were intercepted were calls made 
from our "main" thread. That is, after it's created we call 
"prestartAllCoreThreads" and that does get intercepted. But only that method 
gets intercepted. How can I get this to work? In this situation we hand the 
queue off to the ExecutorService and we don't interact with it after that. How 
can I profile the Queue I've handed off?

Env: mac OS X, JBoss AOP 1.5.5 GA, running standalone, loadtime weaving.

Any help would be greatly appreciated!

Thanks


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079817#4079817

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079817
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to