Is there a bug in the spec here?
Perhaps I'm missing something, but why is a CM_UPDATED event being created
at all.
In my mind the ManagedService is being updated. The configuration object is
not being created or updated.
-Simon
----- Original Message -----
From: "Felix Meschberger" <[EMAIL PROTECTED]>
To: "OSGi Developer Mail List" <[email protected]>
Sent: Wednesday, August 22, 2007 4:30 AM
Subject: [osgi-dev] Configuration Admin Uncertainty
Hi all,
While fixing an issue in the Apache Felix Configuration Admin Service
implementation, I ran accross two uncertainties, which I hope may be
solved: The Configuration Admin Service spec says in section 104.5.3
(Configuring Managed Services), that a CM_UPDATED event has to be sent
out after a ManagedService has been registered. No such statement may be
found for Managed Service Factories.
My first question is: I assume section 104.5.3 intends to send the
CM_UPDATED event after updating the Managed Service regardless of
whether a configuration exists for the Managed Service or not.
My second question is: Is it correct, that after calling the
ManagedServiceFactory.updated method no CM_UPDATED event has to be sent
for a newly registered ManagedServiceFactory ? This would seem
asymetric, because this is the only time that an updated method is
called without a subsequent event.
The Apache Felix implementation currently answers "yes" to question 1
(send an event regardless of Configuration existence) and "yes" to the
second question (not sending a CM_UPDATED event).
Thanks for any clarifications.
Regards
Felix
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev