VMware Cloud Community
TheVMinator
Expert
Expert
Jump to solution

Basic Java Plugin

Is there a basic java "hello world" plugin example, that I can take, add to, and recompile/get ready to use as a plugin in vCO if I have never created a java plugin before for vCO?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
rszymczak
Hot Shot
Hot Shot
Jump to solution

I learned it the hard way (no documentation on this) and now you can profit:

- the vCO SDK you can download

* is outdated (as of today and in contrast to the latest vRO release)

* is not a hard requirement for plug-in development as all you really need are the libs which are - as already mentioned - outdated

* makes initial development harder due to unnecessary complexity and the - outdated - eclipse integration

- best way to start is the Maven archetype already mentioned

- the archetypes use a combination of various technologies which add complexity, e.g.:

* by default Maven AND Ant are used for the build process, even though you could do it all with Maven only

* there is no identical build management setup for the different archetypes which may also confuse

* pom setup is not ideal and need tuneing

* spring (new sdk) and non-spring (old sdk) parts are mixed in the archetype examples and cause confusion

I'd suggest to start with the basic spring-achetype and work your way up. All you really need are the latest libs which you can get from your vCOs maven repo (as mentioned above) and some Java IDE. Due to it's native spring integration I like to use the spring.io STS.

The libs from VMware (exist on your vRO appliance) you'll need are:

- o11n-provided-deps.jar (compile time only)

- o11n-sdkapi.jar (compile time only)

- o11n-spring-tools.jar (compile time and runtime - dunno why this lib is not yet shared in vRO, would make public vCO plugin releases so much easier due to all the legal stuff involved)


There are still some parts of the SDK I don't fully understand yet (e.g. async calls gave me a hard time) but you can learn from my experience by browsing my coopto repo on github. It's not much but the best you'll find out there as of today when it comes to vCO SDK.

View solution in original post

0 Kudos
6 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Deploy a vCO appliance and open its home page in a browser - http://[appliance-ip]

On the home page you'll find a link 'Develop with the Orchestrator Server' which will open another page containing the proper Maven commands needed to generate a vCO plug-in using some of the provided Maven archetypes and to build it.

sanchezs
VMware Employee
VMware Employee
Jump to solution

And as alternative to Ilian's suggestion, you can give a try to the vRO Plug-in SDK: vRealize Orchestrator Plug-in SDK for vSphere 5.5 - VMware Developer Center

And the documentation resources that you will find there as well.

Sergio

bheemeswararao
Enthusiast
Enthusiast
Jump to solution

I don't think so...

0 Kudos
TheVMinator
Expert
Expert
Jump to solution

Great I will try these out

0 Kudos
rszymczak
Hot Shot
Hot Shot
Jump to solution

I learned it the hard way (no documentation on this) and now you can profit:

- the vCO SDK you can download

* is outdated (as of today and in contrast to the latest vRO release)

* is not a hard requirement for plug-in development as all you really need are the libs which are - as already mentioned - outdated

* makes initial development harder due to unnecessary complexity and the - outdated - eclipse integration

- best way to start is the Maven archetype already mentioned

- the archetypes use a combination of various technologies which add complexity, e.g.:

* by default Maven AND Ant are used for the build process, even though you could do it all with Maven only

* there is no identical build management setup for the different archetypes which may also confuse

* pom setup is not ideal and need tuneing

* spring (new sdk) and non-spring (old sdk) parts are mixed in the archetype examples and cause confusion

I'd suggest to start with the basic spring-achetype and work your way up. All you really need are the latest libs which you can get from your vCOs maven repo (as mentioned above) and some Java IDE. Due to it's native spring integration I like to use the spring.io STS.

The libs from VMware (exist on your vRO appliance) you'll need are:

- o11n-provided-deps.jar (compile time only)

- o11n-sdkapi.jar (compile time only)

- o11n-spring-tools.jar (compile time and runtime - dunno why this lib is not yet shared in vRO, would make public vCO plugin releases so much easier due to all the legal stuff involved)


There are still some parts of the SDK I don't fully understand yet (e.g. async calls gave me a hard time) but you can learn from my experience by browsing my coopto repo on github. It's not much but the best you'll find out there as of today when it comes to vCO SDK.

0 Kudos
TheVMinator
Expert
Expert
Jump to solution

ok a lot of work ahead of me thanks again

0 Kudos