Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » OSGi - How can a UPnPStateVariable generate an event?
OSGi - How can a UPnPStateVariable generate an event? [message #45914] Thu, 04 November 2004 19:32
Eclipse UserFriend
Originally posted by: JohannesWechsler.gmx.de

Hi,

I export an OSGi service as a UPnP device. Therefore I implement the
interfaces of the package org.osgi.service.upnp and register my OSGi bundle
so that it can be used as a UPnP device in the network. All this works fine.

On page 526 the OSGi Spec 3.0 says that a
"[org.osgi.service.upnp.UPnP]StateVariable can be used as an event source.
If the StateVariable is eventable, an event listener service can be
registered to be notified when changes to the variable appear."

My questions:
(1) How can I change the value of a UPnPStateVariable since there is no
attribute "value" or something like that?
(2) How can a UPnPStateVariable (automatically) generate an event?

I would appreciate if someone could give me further explanations how to
implement a UPnPStateVariable that automatically generates events each time
its value changes which can be received by any listening UPnP Control Point.

Regards,
Johannes
Previous Topic:narrowing problem in my plugin using jmx
Next Topic:Remote OSGI console
Goto Forum:
  


Current Time: Thu Sep 19 17:20:18 GMT 2024

Powered by FUDForum. Page generated in 0.02768 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top