On Tue, 31 Dec 2024 at 02:15, sudheer kumar <[email protected]> wrote:
> 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? To make data available only via JMX use output=none instead of output=tcpserver,address=*,port=6300 Regards, Evgeny -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/jacoco/CAEPFu685ng7Y5En-Zu23K2eAVJP9fBHsFbYw1zJoGhF4kaMW3A%40mail.gmail.com.
