[vbox-dev] IEventSource::registerListener Active Mode

Klaus Espenlaub klaus.espenlaub at oracle.com
Thu Nov 15 18:02:07 GMT 2012


Hi Tonino,

On 15.11.2012 10:10, tonino.barca1 at alice.it 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: vbox-dev-request at virtualbox.org
>     Data: 14-nov-2012 21.00
>     A: <vbox-dev at virtualbox.org>
>     Ogg: vbox-dev Digest, Vol 73, Issue 12
>
>     Send vbox-dev mailing list submissions to
>     vbox-dev at virtualbox.org
>
>     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
>     vbox-dev-request at virtualbox.org
>
>     You can reach the person managing the list at
>     vbox-dev-owner at virtualbox.org
>
>     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
>     (tonino.barca1 at alice.it)
>     2. Re: IEventSource::registerListener Active Mode (Klaus Espenlaub)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Wed, 14 Nov 2012 12:11:16 +0100 (CET)
>     From: "tonino.barca1 at alice.it" <tonino.barca1 at alice.it>
>     Subject: [vbox-dev] IEventSource::registerListener Active Mode
>     To: <vbox-dev at virtualbox.org>
>     Message-ID: <13afe9da94a.tonino.barca1 at alice.it>
>     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 <klaus.espenlaub at oracle.com>
>     Subject: Re: [vbox-dev] IEventSource::registerListener Active Mode
>     To: vbox-dev at virtualbox.org
>     Message-ID: <50A37E24.2080001 at oracle.com>
>     Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>     On 14.11.2012 12:11, tonino.barca1 at alice.it 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
>     vbox-dev at virtualbox.org
>     https://www.virtualbox.org/mailman/listinfo/vbox-dev
>
>
>     End of vbox-dev Digest, Vol 73, Issue 12
>     ****************************************
>
>
>




More information about the vbox-dev mailing list