- Producer built and run as a separate CommandLineRunner.
- Sends one message in JSON or DTO format to a queue in ActiveMQ.
- ActiveMQ host is resolved from BROKER_URL property configured in config.properties.
- sendStudentJSONMessage() is for sending JSON String object message. // Comment sendStudentObjectMessage() when using this.
- sendStudentObjectMessage() is for sending DTO as a message. // Comment sendStudentJSONMessage when using this.
- server.port for Actuator configured on different port from Producer if run on same host as Consumer.
- A sample Actuator endpoint: http://localhost:8085/manage/metrics .