Created
October 5, 2015 15:00
-
-
Save dalegaspi/8f5a1c9d89f0eacaf5a4 to your computer and use it in GitHub Desktop.
Enable JMX programmatically for a Jersey REST application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ResourceConfig rc = new ResourceConfig().packages(...) | |
.register(...); | |
// this is to enable JMX...or any init parameters for that matter | |
rc.addProperties(ImmutableMap.of("jersey.config.server.monitoring.statistics.mbeans.enabled", "true")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment