I have legacy local plugin code where I try to decode the object-id using objectreferenceservice's get reference method. This code used osgi framework to instantiate/inject the service. I am now trying to utilize the same logic in a springboot application for remote plugin, but I am unable to find that service's implementation. I can only see its interface in Vsphere client lib but I don't know how to use it. Any suggestions or approaches are welcomed.
Thanks in advance
Hi kaustubh_aphale,
The local plugin is deployed in the same server as the vSphere Client, and since the vSphere Client brings its own implementation of the ObjectReferenceService, the local plugin uses it with no problems.
Since the remote plugin is deployed in a separate server, the implementation of the ObjectReferenceService is not available.
Having in mind that the objectId has a simple and consistent structure a parser for it can easily be implemented and there is no need to introduce additional dependencies to your project.
Based on the simplicity of this implementation for the object type, object value and vc guid extraction from the object id our recommendation is for plugin partners to implement their own implementation for the object id parsing.
Best Regards,
Martin
Thanks Martin,
Is this the case with usersessionservice too? I wanted to get serverInfo details to connect to different VC's to fetch VM details, or is there any other way to get these details.
Regards
Kaustubh