To connect a solution to ESX Agent Manager, you must obtain connection information from the vCenter Server in which you run the solution. You pass a reference to the EsxAgentManager instance that is running in vCenter Server to the solution.
You pass the connection information to a solution by calling the appropriate methods from the vSphere API.
The EAM Sample Solution defines the connection to vCenter Server in the VimConnection.java class and the connection to ESX Agent Manager in the EamConnection.java class.
The VimConnection class defines methods to obtain the vCenter Server host ID, HTTPS proxy, and the session cookie. The Manager.java class implements VimConnection to connect to the vCenter Server on which the EAM Sample Solution is running. See Connect the Extension to vCenter Server.
Prerequisites
-
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.
- Open eam_work_folder\src\com\vmware\eam\sample\solution\util\EamConnection.java in an editor.
- Open eam_work_folder\src\com\vmware\eam\sample\solution\Manager.java in an editor.
- Obtain the following information from the vCenter Server instance on which you run a solution:
- The vCenter Server host ID.
- The HTTPS proxy port for vCenter Server.
- The session cookie for the current user session in which the solution is logged in as an extension.
- The managed object reference (MoRef) of the ESX Agent Manager instance that is running in the vCenter Server instance.
Procedure
Results
You obtained the connection details for vCenter Server and connected a solution to ESX Agent Manager.
What to do next
Configure ESX agencies and agents to deploy from the solution.