Hello all I developed my own bundle and I would like to change configuration of publisher connectorI write the following code: ServiceReference configurationAdminReference = bundleContext.getServiceReference(ConfigurationAdmin.class.getName()); if(configurationAdminReference != null) { //LOGGER ConfigurationAdmin confAdmin = (ConfigurationAdmin) bundleContext.getService(configurationAdminReference); if(confAdmin != null) { //LOGGER
Configuration configConnector = confAdmin.getConfiguration("com.eclipsesource.jaxrs.connector","inputstream:publisher-4.3.jar"); if(configConnector != null) { //LOGGER Dictionary<String,String> props = configConnector.getProperties(); if(props != null) { properties.put("root","/"); //LOGGER Enumeration<String> keys = props.keys(); if(keys != null) { //LOGGER while(keys.hasMoreElements()) { String key = keys.nextElement(); //LOGGER } } }else { props = new Hashtable<String, String>(); properties.put("root","/"); } configConnector.update(props); } } } But when I went to the configuration page in the web console I have seen the following error Error: the PID "com.eclipsesource.jaxrs.connector" is bound to "file:/c:/Dev/Tools/Apache/Felix/bundle/mybundle-1.0.0.jar" but the actual managed service is registered from "inputstream:publisher-4.3.jar" bundle Any idea of the root cause. It sounds like I don't have the permission to modify configuration of other bundles ?Right ? any way to do that ? Regards