January 2018
Intermediate to advanced
350 pages
9h 7m
English
To keep it simple and easy to understand, we will use maven, but you can follow the same steps on any application server, since javaagent is set up on the JVM and not on a particular server.
The first step is to download the javaagent jar file. To do so with maven, you can just add the dependency maven plugin in your pom.xml:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.0.2</version> <executions> <execution> <id>sirona</id> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>com.github.rmannibucau.sirona</groupId> <artifactId>sirona-javaagent</artifactId> <version>0.6</version> <type>jar</type> <classifier>shaded</