Hi,

I'm about to grab and peruse the source for the Pax logging and see what
I can find... I sort of attempted from scratch to set up a bundle that
implements cm.ManagedService... The updated() method is being invoked
twice with a null argument for Dictionary...

One thing I forgot to mention - I prefer to use
SCR/DeclarativeServices... I think the invocation of the updated()
method being done twice has something to do with DeclarativeServices
setting up my bundle to already provide ManagedService in some manner to
be determined... 

I tried using the 'net.luminis.cmc-0.2.1.jar' shell to play around, but
to no avail, in that it kept giving me some kind of ERROR message about
configuration being "already delivered" and, hence, my updated() method
was never subsequently invoked, unless I manually deleted the service
(go figure)...

So, sigh... I guess it's on to figuring out how pax does it...  thanks
for the tip, Craig

-----Original Message-----
From: Alin Dreghiciu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2008 8:48 AM
To: [email protected]
Subject: Re: ConfigAdmin - examples / tutorials

If you want some examples you can check out code from OPS4j Pax such
as Pax Logging for example and search for ManagedService. Pretty much
all Pax stuff can be configured via Configuration admin so you can
find more examples in pax runner / web / ...
For an example of ManagedServiceFactory you can look into code of Pax
Coin (FileSystemResourceScannerFactory).


Reply via email to