Modifies a Spring Boot web app in a .war or .jar file to enable the provenance injector to run automatically, without the need to specify -javaagent:... on the java command line.
Adds "exploded" contents of provenance-agent.jar directly to the web app jar
Appends some lines to META-INF/MANIFEST.MF (notably Launcher-Agent-Class) to enable the agent to run automatically
Tested on the movie demo app.
For now, the Spring Boot app needs to contain its own mechanisms for turning on provenance collection for each request (probably using an Interceptor), and picking up provenance records (probably using a @Controller component). In light of this, this logic will eventually be moved inside this repo.
Modifies a Spring Boot web app in a
.war
or.jar
file to enable the provenance injector to run automatically, without the need to specify-javaagent:...
on thejava
command line.provenance-agent.jar
directly to the web app jarMETA-INF/MANIFEST.MF
(notablyLauncher-Agent-Class
) to enable the agent to run automaticallyTested on the movie demo app.
For now, the Spring Boot app needs to contain its own mechanisms for turning on provenance collection for each request (probably using an
Interceptor
), and picking up provenance records (probably using a@Controller
component). In light of this, this logic will eventually be moved inside this repo.