mans6singh (17) [Avatar] Offline
#1
Hi:

I am working on an application that is being monitored by a tool that requires instrumenting the application with javaagent option. If I want to also use aspectj's agent to weave it's aspects into the code, how can I do that.

Thanks.
ramnivas (171) [Avatar] Offline
#2
Re: Using multiple javaagent options
You can give a comma separated list of agents.

-Ramnivas
mans6singh (17) [Avatar] Offline
#3
Re: Using multiple javaagent options
Do you mean comma separated list of jar files containing agent ?

Thanks.
ramnivas (171) [Avatar] Offline
#4
Re: Using multiple javaagent options
Correction: You need to use multiple -javaagent -- one per agent. See http://java.sun.com/javase/6/docs/api/java/lang/instrument/package-summary.html for more details.

-Ramnivas