AnsweredAssumed Answered

tracing dynamic proxies?

Question asked by JohnGregg on Sep 19, 2014
Latest reply on Sep 24, 2014 by Stefan.Thieme

All,

 

I'm on APM 9.1.1.6.

 

Is it possible to trace the performance of dynamic proxies?  We're starting to make backend web service calls using CXF's JaxWsClientProxy.  The code generation step only produces an interface for the backend service.  At runtime CXF generates a dynamic proxy to make the actual backend call.  JaxWsClientProxy is the invocation handler for the proxy.  I'd like to do something like this:

 

TraceComplexMethodsIfInherits <generated interface type> BackendTracer "{packageandclassname}|{methodname}"

 

I've tried this without success.  Perhaps the problem is that when the directives are loaded, there are no classes in the jvm at the time that implement that interface.  Instead, they're generated on the fly.

 

Thanks

Outcomes