Re: [libvirt-users] Problem with listDomains() in Xen

2011-11-11 Thread PREETHI RAMESH
Hey, I've tried the following: 1.Domain d=conn.domainLookupByName("test"); System.out.print("Active test" +d.isActive() ); O/p- This gives me 1 as the answer and hence active. 2.Domain d=conn.domainLookupByName("test"); System.out.print("Active test" +d.isPersistent() ); O/p- Gives me the f

Re: [libvirt-users] Problem with listDomains() in Xen

2011-11-11 Thread Eric Blake
[your mailer seems to want to start a new thread rather than replying to the existing thread, which makes following your mails difficult. Could you please fix that?] On 11/10/2011 09:09 PM, PREETHI RAMESH wrote: > This question concerns the usage of the listDomains(). When I run this > piece of c

[libvirt-users] Problem with listDomains() in Xen

2011-11-10 Thread PREETHI RAMESH
This question concerns the usage of the listDomains(). When I run this piece of code in KVM, it works perfectly fine but throws an array out of bounds exception in Xen. Connect conn=null; conn = new Connect("xen:///", true); int[] id = conn.listDomains(); System.out.println("lD of VM " +id[0])