Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Map<String, String> serverConfigMap = new HashMap<String, String>() {{
  2. put("host", jolokiaHost);
  3. put("port", jolokiaPort);
  4. }};
  5. try {
  6. JolokiaServerConfig jolokiaServerConfig = new JolokiaServerConfig(serverConfigMap);
  7. JolokiaServer jolokiaServer = new JolokiaServer(jolokiaServerConfig, false);
  8. jolokiaServer.start();
  9. } catch (IOException | RuntimeException e) {
  10. LOG.error("Failed to start Jolokia with: {}", e.getMessage());
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement