You must provide information about the vCenter Server instance to which you connect an extension. Set the details of the connection to vCenter Server in the client-side stub of the extension.
If you deploy your extension using the Open Virtualization Format (OVF), you can integrate it with the vCenter Extension vService. The vCenter Extension vService automates the process of registering extension with vCenter Server, so you do not need to provide any connection parameters. See Integrating an Extension with the vCenter Extension vService.
To connect an extension to vCenter Server, provide the following information to the client-side stub of the connection.
■
|
A username and password for a vCenter Server administrator account, if you do not use the vCenter Extension vService |
■
| |
■
|
A reference to the SessionManager instance in the vCenter server |
The EAM Sample Solution defines the connection to vCenter Server in the VimConnection.java class.
The Manager.java class performs the following functions.
■
| |
■
|
Verify that you have set up and started the EAM Sample Solution in an application server. |
■
|
Open eam_work_folder\src\com\vmware\eam\sample\solution\util\VimConnection.java in an editor. |