Can Spring actuator be used with non-web Spring Boot application?
Asked Answered
A

1

17

I have a Spring Boot application which listens for messages from an IBM MQ input queue, does some processing of the messages and then puts the messages to an output queue.

Can application like this utilize Spring actuator to monitor the application (e.g. heartbeat checking)? From reading the actuator documentation, it seems that it can only be used with Spring web applications? Is my understanding incorrect? If so, could you please provide information on how to use actuator with non-web applications?

Affable answered 6/4, 2017 at 5:50 Comment(0)
M
12

In addition to be available via HTTP when running in a web application, the Actuator's endpoints are also available over JMX in both web and non-web applications. MBeans for the Acuator's endpoints are published in the org.springframework.boot domain. Please see the relevant section of the documentation for more details.

Maggio answered 6/4, 2017 at 8:25 Comment(1)
any example on how to access the MBeans programmatically? most examples I found suggest JConsole.Enravish

© 2022 - 2024 — McMap. All rights reserved.