--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jacoco/c06eb363-63c2-4242-8127-53e3a3052ddcn%40googlegroups.com.
java
-javaagent:/path/to/jacoco-agent.jar=jmx=true,output=tcpserver,address=*,port=<port_number>
-jar <your_application>.jar
how do i pass credentials for jmx in above ?? so i can use the same credentials when using jmx client to dump the coverage
I am not sure if i am doing it right or not...
java -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=c:\coverage\sample\jmxremote.password -Dcom.sun.management.jmxremote.access.file=c:\coverage\sample\jmxremote.access -javaagent:C:\tools\jacoco\lib\jacocoagent.jar=jmx=true,output=tcpserver,address=*,port=6300 -jar C:\coverage\sample\calculator.jar
this is how instrumented my jar file with jmx
now the app works fine...
the problem is... still i am able to use "dump" without authentication..
java -jar c:/tools/jacoco/lib/jacococli.jar dump --address localhost --port 6300 --destfile C:/coverage/assurenxt/exec/jacoco.exec
the jacoco.exec file is created. i donot want this command to work when jmx=true. is my understanding wrong?