Phase 1: Run with AppDynamics
1. Build the App
The workshop includes a simple Spring Boot application with a few REST endpoints. Let’s build it.
Verify Java and Maven #
Your instance has OpenJDK 17 and Maven pre-installed. Confirm:
bash
java -version && mvn -versiontext
openjdk version "17.0.x" ...
Apache Maven 3.x.x ...Build the Application #
Navigate to the workshop app directory and build the fat JAR:
bash
cd ~/workshop/appd/app
mvn package -DskipTeststext
[INFO] BUILD SUCCESSFirst build
The firstmvn package downloads Spring Boot dependencies. This takes 30-60 seconds. Subsequent builds are much faster.Test the Application (without AppD) #
Run the app briefly to confirm it starts:
bash
java -jar target/ingest-workshop-1.0.0.jar &Wait a few seconds, press return to go back to your prompt, then test:
bash
curl -s localhost:8080/health | jq .json
{
"status": "healthy"
}Stop the app before proceeding:
bash
kill %1The application works. Next, you’ll download the AppDynamics Java Agent so you can attach it to this process.
