[vbox-dev] How to RevertToCurrentSnapshot using original Java WSDL API
Jiri TUSLA
jiri.tusla at seznam.cz
Tue Aug 19 13:02:33 PDT 2008
Hi,
I'm trying to do some automation and have following snippet of code
void doRevert(String machineUUID) {
VboxService service = new VboxService();
VboxPortType port = service.getVboxServicePort();
try {
System.out.println("Reverting " + machineUUID);
String box = port.iWebsessionManagerLogon("", "");
port.iConsoleDiscardCurrentState(_this);
port.iWebsessionManagerLogoff(box);
} catch (InvalidObjectFaultMsg ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
} catch (RuntimeFaultMsg ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
I'm not able to find the way from the machine to it's respective console
to be able to use method iConsoleDiscardCurrentState. I suppose that
it's parameter "_this" is a reference to the Console.
But where to get it... That's the question.
Currently working with VirtualBox 1.6.4.
Thanks in advance,
JiT
More information about the vbox-dev
mailing list