Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 648 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 648 Bytes

probe-agent

Java Application ProbeService Demo By using Java Agent

detail

This project contains two parts, one is agent directory, the other is main application.

the main application has a service which named is ProbeService, and the agent aims to instrument this service and change the ability.

The Agent part contains premain class and a interceptor, which will instrument the probe service by using bytebuddy.

package

you should update pom.xml, and package main.jar and agent.jar by exec following command,

mvn clean package -Dmaven.test.skip=true

run

java -javaagent:agent.jar -jar main.jar