Archived

This forum has been archived. Please start a new discussion on GitHub.

Example of ServiceObserver usage in Java?

Using Ice 3.3.1, Java 6, OS X 10.6.6 and RHEL6.

I am looking for an example of registering a ServiceObserver with the IceBox ServiceManager in Java. Specifically, I want to monitor the IceBox server to see when all the services have been started. It currently takes about 80-90 seconds to start all of our services.

I have an implementation of _ServiceObserverDisp, but I am struggling to figure out how to get the proxy for the implementation to register with the ServiceManagerPrx.

Is there an example somewhere?

I have read http://www.zeroc.com/doc/Ice-3.3.1/manual/IceBox.45.5.html and the referenced http://www.zeroc.com/doc/Ice-3.3.1/manual/IceGrid.40.21.html#123241. The example code is the docs is C++, which hasn't been helpful to me.

Thanks.