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
### Keybase proof | |
I hereby claim: | |
* I am slider on github. | |
* I am sebastianlatza (https://keybase.io/sebastianlatza) on keybase. | |
* I have a public key ASDYZ9I9KfoRjQqch6mF4kV0jMAjpUehIBoaS9fGsUpKyQo | |
To claim this, I am signing this object: |
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
package com.turtle.jmxcli | |
import java.util.HashMap | |
import javax.management._ | |
import javax.management.remote._ | |
object jmxcli { | |
def main(args: Array[String]) { | |
val jmxUrl = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:9004/jmxrmi") | |
val props = new HashMap[String, Array[String]] | |
props.put(JMXConnector.CREDENTIALS, Array("user","pass")) |