Search code examples
javajbosswildflyjavaagents

Is it possible deploy and run war-application with javaagent on Wildfly/JBoss?


How to deploy and run war-application with javaagent on Wildfly/JBoss? Is it possible?


Solution

  • You can just add agentlib as startup option to Wildfly/JBoss, so yes, sure it's possible. However, if you just want to run the application with agentlib without Wildfly/JBoss classes being iterated, that you wouldn't be able to do, as java agents work on JVM level. So all classes in runtime JVM would be iterated, including Wildfly/JBoss classes.