Hello Shashank.<br><br>Keep in mind that underneath, the java OCA is an XMLRPC interface to OpenNebula. That's why you need to retrieve the information from ONE with the info() method first.<br><br>We tried to make the code flow clear by creating some examples[0], you may find them more helpful than the javadoc.<br>
<br>About the username:password string: Do you mean that you could interact with OpenNebula with a non-existing user?<br><br>[0] <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/oca/java/share/examples">http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/oca/java/share/examples</a><br>
<br>Best regards,<br><br>Carlos Martín, Cloud Technology Engineer/Researcher<br>DSA Research Group: web <a href="http://dsa-research.org">http://dsa-research.org</a> and blog <a href="http://blog.dsa-research.org">http://blog.dsa-research.org</a><br>
OpenNebula Open Source Toolkit for Cloud Computing: <a href="http://www.OpenNebula.org">http://www.OpenNebula.org</a><br>
<br><br><div class="gmail_quote">2010/4/28 Shashank Rachamalla <span dir="ltr"><<a href="mailto:shashank.rachamalla@hexagrid.com">shashank.rachamalla@hexagrid.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi<br><br>I have noticed the following while using Java OCA with Nebula 1.4.<br><br>            Client oneClient = new Client("shashank:shashank","<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a>");<br>


            VirtualMachine vm  = new VirtualMachine(1,oneClient);<br>            <a href="http://vm.info" target="_blank">vm.info</a>();<br>            System.out.println(vm.getName());<br><br>            Host host = new Host(4,oneClient);<br>


            <a href="http://host.info" target="_blank">host.info</a>();<br>            System.out.println(host.getName());<br clear="all"><br>In the above code, vm.getName() has a dependency on <a href="http://vm.info" target="_blank">vm.info</a>(). If <a href="http://vm.info" target="_blank">vm.info</a>() is not invoked  prior to it then the attributes of VirtualMachine object are null. The same dependency can be seen with Host releated invocation. Is this dependency required or can it be reported as a bug ?<br>


<br><br>I have also noticed that the code was functional for any username:password specified as secret.<br><br>-- <br>Regards,<br><font color="#888888">Shashank Rachamalla<br>
</font><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>