The main purpose of the ComponentInstanceManagerLocator
class is to create a connection to a Component Instance Manager server.
The steps for obtaining a connection are:
Call the
create()
method to create aComponentInstanceManagerLocator
object with the host name and port of the server running the Component Instance Manager:ComponentInstanceManagerLocator locator = ComponentInstanceManagerLocator.create("localhost", 8500);
Call the
getService()
method to make a connection to the Component Instance Manager service on that server:ComponentInstanceManager cim = locator.getService();