Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Configuration Admin Service Problem

Hi I would like to know how I can activate Configuration Admin Bundle for Equinox.

 

I have tried by launching org.eclipse.osgi.services.jar bundle where it is suppoused to be, but I when I tried to get the Configuration Admin Service using the next code but I do not get any service at all.

 

 

trackerConfigurationAdmin = new ServiceTracker(context, ConfigurationAdmin.class.getName(), null);

        trackerConfigurationAdmin.open();   

        configurationAdminService = (ConfigurationAdmin) trackerConfigurationAdmin.getService();

        if (configurationAdminService ==null) {

            log.warn("It was not possible to get ConfigurationAdmin service");

            System.out.println("It was not possible to get ConfigurationAdmin service");

        }

 

Am I missing anything?

 

Any hint will be welcomed

 

 

 

Thanks in advance

 

 


Back to the top