[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ecf-dev] Distributed OSGI Event Admin Service
|
Hi Rajesh,
Rajesh Jain wrote:
http://eclipsesource.com/blogs/2009/06/16/distributed-osgi-eventadmin-service/
I have a question on the Distributed OSGI Event Admin Service - can I
use the distributed eventadmin service to start/stop or list all the
remote services?
If I'm understanding correctly what you want to do, the answer is 'yes'.
What would be needed would be an event generator (i.e. something to call
the EventAdmin.postEvent(...)) with the relevant meta-data about remote
services (e.g. what the service objectClass is, what it's service.id is,
what bundle it's in, what service properties it has, etc)., and then
distributing that information to all participants via
EventAdmin.postEvent(...). It would probably also want to implement
ServiceListener...so that as services come and go notifications can be
sent about these changes.
In addition, it would be possible to send events which represent
start/stop commands...and the receivers of those events would then
actually lookup/get the bundle hosting the given service and then
start/stop it.
If you decide to do something like this, it would be great if you would
consider working with us and contributing it back as an example. I am
going to be setting up a part of the ECF wiki for 'contributed
examples'...for any/all parts of ECF (e.g. remote services and discovery
as well as presence/IM/chat, collab, rt shared editing, etc) and I'll
make approrpriate announcements here.
Scott