How to configure JVM Argument -javaagent with two jars [duplicate]
Asked Answered
E

1

5

To use the spring AOP, I have to configure -javaagent:C:/spring-agent-2.5.6.jar as JVM argument. But there is a jar that is already configured i.e. -javaagent:C:/other.jar

Now how can I configure both jars with -javaagent so that both jars should work properly?

Also there may be the different approaches to configure multiple jars with -javaagent in Windows and Linux environment. Please suggest the solution for both of the environments.

Elegant answered 28/11, 2013 at 12:58 Comment(0)
L
9

One java application may have any number of agents by using -javaagent: option any number of times. Agents are invoked in the same order as specified in options

Langrage answered 28/11, 2013 at 13:8 Comment(1)
Thanks for the reply. I got the idea.Elegant

© 2022 - 2024 — McMap. All rights reserved.