Hi,
Using PoJoSr and extending the example that we have as unit test for
jaas/jasypt, I try to retrieve a OSGI Config Admin service registered using
blueprint under the key encryptConfig
<cm:property-placeholder persistent-id="encryptConfig"
update-strategy="reload" >
<cm:default-properties>
<cm:property name="encoded" value="ENC(${foo})"/>
</cm:default-properties>
</cm:property-placeholder>
Java code
ConfigurationAdmin configAdmin =
getOsgiService(ConfigurationAdmin.class,
"(service.pid=org.apache.felix.cm.ConfigurationAdmin)"); // THERE IS AN
OBJECT IN DEBUG MODE
Configuration[] configs =
configAdmin.listConfigurations("(service.pid=encryptConfig)");
When I execute the following code, the Configuration[] object is null
Can someone tell me what is wrong in my code ?
Regards,
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com