Best Practices for
Extending the Service Layer
Following these
recommendations and best practices for creating extensions of the
vSphere Web Client
service layer, can help you improve the security,
scalability, and performance of your extension solutions.
- To avoid deployment errors, add your services to the Spring configuration by using thebundle-context.xmlSpring configuration file. Do not create alternative Spring contexts.
- To increase the deployment speed of your extensions, make sure that you optimize your Spring context initialization. You must use as little source code as possible in the constructor and the initialization method of your Spring beans.
- Avoid using timers for pooling data from the vSphere environment. In case there is no other way to retrieve the required data, you must make sure that data queries are not overlapping.
- If you use a tool to automatically generate the manifest file of your service layer extension, make sure that no third-party packages are added to thePackage-Exportmanifest header.