Hi Tonino,

On 15.11.2012 10:10, [email protected] wrote:
>
> Hi Klaus,
> i use the XPCOM API from Java.
> I am an student of University of Messina and I'm working on a project
> called CleverCloud.
> i have to implement a function concern to the status of various VM.
> I tried to find examples but they all work with passive listener.

The active listeners only work from C++ at the moment. In theory it 
could be made working from Java too, but this is lots of work and no one 
really needs it. Use passive event handling, it works reliably, is 
portable and receives exactly the same information.

If you absolutely need callbacks (which always create synchronization 
headaches): create a thread which does the passive event listening and 
trigger the callbacks yourself.

Klaus

> I trust in his help
> thanks
> Tonino Barca
>
>
> ----Messaggio originale----
>
>     Da: [email protected]
>     Data: 14-nov-2012 21.00
>     A: <[email protected]>
>     Ogg: vbox-dev Digest, Vol 73, Issue 12
>
>     Send vbox-dev mailing list submissions to
>     [email protected]
>
>     To subscribe or unsubscribe via the World Wide Web, visit
>     https://www.virtualbox.org/mailman/listinfo/vbox-dev
>     or, via email, send a message with subject or body 'help' to
>     [email protected]
>
>     You can reach the person managing the list at
>     [email protected]
>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of vbox-dev digest..."
>
>
>     Today's Topics:
>
>     1. IEventSource::registerListener Active Mode
>     ([email protected])
>     2. Re: IEventSource::registerListener Active Mode (Klaus Espenlaub)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Wed, 14 Nov 2012 12:11:16 +0100 (CET)
>     From: "[email protected]" <[email protected]>
>     Subject: [vbox-dev] IEventSource::registerListener Active Mode
>     To: <[email protected]>
>     Message-ID: <[email protected]>
>     Content-Type: text/plain; charset="utf-8"
>
>
>     Hi,as object I need help to understand the operation of
>     "IEventSource :: registerListener" in Active Mode.I am using the API
>     for JavaCould you please give me a hand because I use this type of
>     calback in my thesis work.
>     Tonino Barca
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     
> http://www.virtualbox.org/pipermail/vbox-dev/attachments/20121114/67b7322d/attachment-0001.html
>
>
>     ------------------------------
>
>     Message: 2
>     Date: Wed, 14 Nov 2012 12:19:00 +0100
>     From: Klaus Espenlaub <[email protected]>
>     Subject: Re: [vbox-dev] IEventSource::registerListener Active Mode
>     To: [email protected]
>     Message-ID: <[email protected]>
>     Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>     On 14.11.2012 12:11, [email protected] wrote:
>      >
>      > Hi,
>      > as object I need help to understand the operation of "IEventSource ::
>      > registerListener" in Active Mode.
>      > I am using the API for Java
>
>     Do you use the COM/XPCOM API from Java, or the webservice?
>
>      > Could you please give me a hand because I use this type of
>     calback in my
>      > thesis work.
>
>     There are quite a few samples in the VirtualBox sources, however using
>     C++...
>
>     Klaus
>
>      >
>      > Tonino Barca
>
>
>
>     ------------------------------
>
>     _______________________________________________
>     vbox-dev mailing list
>     [email protected]
>     https://www.virtualbox.org/mailman/listinfo/vbox-dev
>
>
>     End of vbox-dev Digest, Vol 73, Issue 12
>     ****************************************
>
>
>

_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to