@ManagedResource
(objectName="bean:name=SampleService",
description="Properties Service", log=true)
public class SampleImpl implements ISampleService
@ManagedAttribute
public void setName(String name) {
...
}
Within your startup of your weblogic or whatever app container
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8088
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
Startup jconsole and enter the hostname and the port within the "Remote Process" field.
done.
The full address to the remote process is
service:jmx:rmi:///jndi/rmi://SERVERNAME:PORT/jmxrmi
Keine Kommentare:
Kommentar veröffentlichen