Wednesday, 18 July 2007

Connecting to the OC4J MBeanServer Doc Issue

I was attempting to connect to the OC4J MBeanServer in my opmn managed OC4J instance and was using the online documentation below.

I found that in the example the service URL was specified incorrectly.

// Create a variable for a URL containing data needed to access 
// the connection target; in this case, an OPMN-managed OC4J instance
String url="service:jmx:rmi///opmn://"

It is missing the : in the service URL. The correct way is shown below you will see the : added after rmi. A documentation bug has been filed.


private String url="service:jmx:rmi:///opmn://";

No comments: