Search This Blog

Thursday, 2 July 2009

Dynamic JMX Service URL for OC4J 10.1.3.x

Not for myself, the following code will dynamically generate a JMX service URL without using OPMN port.

private String url =
"service:jmx:ormi://" + System.getProperty("hostname.rmi") +
":" + System.getProperty("port.rmi");

No comments: