Yes, i used the tutorial. Someone from irc gave me the link to it. And yes, I implemented my api call using that. But that's when the question poped up in regards of dependent code.
After this email, Dahn from irc suggested i create a code restructure proposal (to move vnc related libs to some shared codebase). So i'll try to figure something out over the next week or two. Regarding the benefits for all users, i think having an api call which returns an url for the console - instead of depending on the management server itself - would benefit a lot of people (especially in the commercial environment). I'm working on this because we ourself need this feature :) So i'm just trying to figure out the best/correct way to implement this in CS. Linas Žilinskas Head of Development Host1Plus website: http://www.host1plus.com facebook: https://www.facebook.com/Host1Plus twitter: https://twitter.com/Host1Plus linkedin: https://www.linkedin.com/company/digital-energy-technologies-ltd. Mobile: +370 699 08899 Phone: +44 870 8200222 Fax: +44 870 8200222 Host1Plus is a division of Digital Energy Technologies Ltd. 26 York Street, London W1U 6PZ, United Kingdom -----Original Message----- From: ilya [mailto:ilya.mailing.li...@gmail.com] Sent: Tuesday, May 03, 2016 9:27 PM To: dev@cloudstack.apache.org Subject: Re: how to go about codebase quality when colisions occur? Linas Congrats on first java project ever! CloudStack supports custom pluggable APIs that you dont have to bake into code base - unless you feel many other users will benefit from it. We do it all the time and i'm sure many others orgs do the same... Search the web for CloudStack custom API, there is a baked in example for creating custom API plugin and get time date from Management Server.. Also, this thread is a good example: https://www.mail-archive.com/dev@cloudstack.apache.org/msg55559.html I recall there was a doc that explained it in greater detail, but i havent had a chance to look for it. Regards ilya On 5/3/16 5:36 AM, Linas Žilinskas wrote: > Hello. > > I implemented a new API call for myself, which returns the VNC url for a VM. > Currently i'm using some classes from the consoleproxy servlet package > as well as copied some code over to my own package/class (specifically the > encryption stuff) Now i have questions regarding this way of doing things. > > I'm all about isolation and making stuff portable as much as possible. To me > the consoleproxy seems like a semi-standalone project. Therefore it doesn't > seem nice to be using packages/classes willy nilly across other packages. > > So should i split the reusable code into a separate package and store it > somewhere in the shared codebase, or should i just duplicate code. I saw that > the servlet itself has a copied over class from the standalone consoleproxy > project. > > Or maybe there's some way of implementing the api calls into the consoleproxy > project itself? > > PS. This is my first java project ever, so i'm learning as i go > through the code. So bear with me if the language i use seems off > > Regards > > Linas Žilinskas > > Development Lead > > [http://host1plus.com/images/h1p_e_sig/sig_logo.png]<http://www.host1p > lus.com/> > > website<http://www.host1plus.com/> > > facebook<https://www.facebook.com/Host1Plus> > > twitter<https://twitter.com/Host1Plus> > > linkedin<https://www.linkedin.com/company/digital-energy-technologies- > ltd.> > > > > > Phone: +44 870 8200222 > > Fax: +44 870 8200222 > > Host1Plus is a division of Digital Energy Technologies Ltd. > > 26 York Street, London W1U 6PZ, United Kingdom > > >