VMware Cloud Community
Sumit_Tyagi
Enthusiast
Enthusiast

Exposing Java Objects in vCenter Orchestrator

Hi All,

I am trying to expose few java objects in VCO Standalone installation.

I am following the required file structre for the dar file:- lib, resources, VSO-INF and webapps.

the required jar files are placed in lib:- model jar(java objects that needs to be exposed), and core (implemented IPluginAdaptor and IPluginFactory) jar. I don't need any configuration for now, so no war file is required.

When I install the dar file in VCO confguration, and restart vco server (I have also restarted configuration server as well), then I don't see any exposed objects in VCO client API search.

I am not getting why this is happening. Could anyone assist me if I am missing anything?

The vso.xml file is in the following format:-

<?xml version="1.0" ?>
<module build-number="1" display-name="Test System" name="TEST" version="0.1">


<description>
  Cisco UCS Manager Plug-in.
</description>


<finder-datasources>
  <finder-datasource adaptor-class="com.test.TestAdapter" name="test-datasource"/>
</finder-datasources>

<finders>
  <finder datasource="test-datasource" script-object="TopObject" type="TopSystem" java-class="com.test.TopObject>
   <relations>   
    <relation name="aObjects" type="aObject"/>
    <relation name="bObjects" type="bObject"/>
   </relations>
   <inventory-children>
    <relation-link name="aObjects"/>
    <relation-link name="bObjects"/>
   </inventory-children>
   <properties>
    <property bean-property="prop1" display-name="Prop1" name="prop1"/>
    <property bean-property="prop2" display-name="Prop2" name="prop2"/>
    <property bean-property="prop3" display-name="Prop3" name="prop3"/>
   </properties>
  </finder>

  <finder datasource="test-datasource" type="aObject">
   <relations>
    <relation name="abc" type="ABC"/>
    <relation name="def" type="DEF"/>
    <relation name="ghi" type="GHI"/>

   </relations>
   <inventory-children>
    <relation-link name="abc"/>
    <relation-link name="def"/>
    <relation-link name="ghi"/>

   </inventory-children>

  </finder>

<finder datasource="test-datasource" type="bObject">
   <relations>
    <relation name="mno" type="MNO"/>
    <relation name="pqr" type="PQR"/>
    <relation name="stu" type="STU"/>

   </relations>
   <inventory-children>
    <relation-link name="mno"/>
    <relation-link name="pqr"/>
    <relation-link name="stu"/>

   </inventory-children>

  </finder>

</finders>

<scripting-objects>
  <object java-class="com.test.TopObject" script-name="TopObject">

   <description>this is top object</description>

   <attributes/>

   <methods/>

  </object>

  .......All other objects listed in relations of finders.....

  </scripting-objects>

</module>

Best Regards,

Sumit Tyagi.

Reply
0 Kudos
4 Replies
Sumit_Tyagi
Enthusiast
Enthusiast

Ok, My issue got resolved. The objects are visible in VCO now.

Reply
0 Kudos
aariverbed
Contributor
Contributor

Hi Sumit,

How did your issue get resolved? I am facing a similar issue.

Regards !!

Reply
0 Kudos
Sumit_Tyagi
Enthusiast
Enthusiast

It was a very minor spell-mistake I did somewhere, I don't remember exactly where. I corrected it and it ran perfectly. It runs perfectly as it is mentioned in the develop plugins guide.

Reply
0 Kudos
aariverbed
Contributor
Contributor

OK Thank you !! I added an additional instruction in my dar build file to include external jars and that fixed the problem.

Reply
0 Kudos