| Start |
|---|
| Simple example with Platform MBean Server Let's say we have some server that registers new users and greets them with some message. And we want to monitor this server and change some of it's parameters. First, we need an interface with our monitoring and control methods And some simple implementation that will let us see how it's working and how we affect it For simple example with local or remote management, we need to register our MBean: After that we can run our application and connect to it via jConsole, which can be found in your then switch to MBeans tab and find that MBean that we used in our Main class as an Specified methods can be invoked in If you want to be able to use remote management, you will need additional JVM parameters, like: These parameters can be found in Chapter 2 of JMX guides (opens new window). After that you will be able to connect to your application via jConsole remotely with Useful links: |
Read Article
https://develop.horje.com/learn/1434/reference