Demonstrates a Spring Boot app producing and consuming messages from Apache ActiveMQ Artemis JMS queues.
- Copy
./src/resources/application.properties
to./src/resources/application-local.properties
and add your Artemis connection settings. - Run the Spring Boot app:
./mvnw spring-boot:run -Dspring-boot.run.profiles=local
- Type a message when prompted.
- Verify message is received on Artemis queue (ex. using web console).
- Build Spring Boot JAR with Maven:
./mvnw clean package
- Run JAR:
java -jar target/jms-demo-0.0.1-SNAPSHOT.jar