Micronaut JMX Configuration

Provides JMX support for Micronaut services

Version: 1.2.0

1 Introduction

The micronaut-jmx module includes support for exposing Micronaut management endpoints over JMX.

A bean will be created for the management bean server based on configuration.

🔗
Table 1. Configuration Properties for JmxConfiguration
Property Type Description

jmx.agent-id

java.lang.String

Sets the agent id.

jmx.domain

java.lang.String

Sets the domain to create a new server with.

jmx.add-to-factory

boolean

Sets if the server should be kept in the factory. Default true.

jmx.ignore-agent-not-found

boolean

Sets to ignore the exception if the agent is not found. Default false.

jmx.register-endpoints

boolean

Sets if endpoints should be registered. Default true.

2 Setting up JMX

compile 'io.micronaut:micronaut-jmx:1.2.0'
<dependency>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-jmx</artifactId>
    <version>1.2.0</version>
</dependency>

3 Endpoints

If the management dependency is also on the classpath, management beans will be created for all endpoints by default.