Hi
I have managed to successfully deploy the HTML plugin and have it talk back to a Java service based on the sample code in the SDK package.
I want to be able to display information in the plugin that is on my own application server that runs on a totally different back-end server Because of browser cross scripting issues, I understand that the HTML code can't talk directly to that server. Instead if would need to go via the Java service running inside the virgo server.
My question is this. How can the Java service determine what the hostname/port is for my back-end application server in order to connect back to it? I can't hard code this information in the plugin as it will be different at each site. My initial thoughts were that there must be a way in which my Java service could query the extension information via the VSphere Web Client SDK, and pull out of that information the details of my back-end server. However, I don't seem to be able to figure out a way to do that with the vSphere Web Client SDK.
Is there a way of doing this, or is there a better way of doing it?
My plugin is registered as part of the global view within the vSphere client, which means that I don't get a session id with which to connect to vCenter. One thought was that if I had that information I could have used the session id from that, to connect to vCenter via the vCenter web service SDK and get the required info from the extension manager.
Mark
↧
Connecting to a back-end server from HTML/Java Plugin
↧