Hi,

I'm testing cellar and I'm asking  myself the following question : Is it 
possible to access a remote service without use blueprint ? Because when I 
execute this below code, I not see my service.

final ServiceReference[] serviceReferences = 
Service1Impl.this.context.getServiceReferences(null, null);

if (serviceReferences != null) {
                for (int i = 0; i < serviceReferences.length; i++) {
                               String[] a = (String[]) 
serviceReferences[i].getProperty("objectClass");

                               for (int j = 0; j < a.length; j++) {
                                               if (a[j].contains("cluster")) {
                                                               
System.out.println(a[j]);
                                               }
                                }

                }
}

Thank you for your help

Reply via email to