Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map<String, String> serverConfigMap = new HashMap<String, String>() {{
- put("host", jolokiaHost);
- put("port", jolokiaPort);
- }};
- try {
- JolokiaServerConfig jolokiaServerConfig = new JolokiaServerConfig(serverConfigMap);
- JolokiaServer jolokiaServer = new JolokiaServer(jolokiaServerConfig, false);
- jolokiaServer.start();
- } catch (IOException | RuntimeException e) {
- LOG.error("Failed to start Jolokia with: {}", e.getMessage());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement