Sun WBEM SDK applications typically follow this sequence:
Connect to the CIM Object Manager - (CIMClient).
A client application contacts a CIM Object Manager to establish a connection each time it needs to perform a WBEM operation, such as creating a CIM Class or updating a CIM instance.
Use one or more APIs to perform some programming tasks.
Once a program connects to the CIM Object Manager, it uses the APIs to request operations.
Close the client connection to the CIM Object Manager - (close).
Applications should close the current client session when finished. Use the CIMClient interface to close the current client session and free any resources used by the client session.