Community
Participate
Working Groups
A r-OSGi smart proxy surrogate [0] fails to work when registered via OSGi remote services: final ServiceReference legacyService = event.getServiceReference(); final Dictionary<String, Object> properties = new Hashtable<String, Object>(); properties.put("service.exported.interfaces", "*"); properties.put(RemoteOSGiService.SMART_PROXY, SmartKundenServiceMemImpl.class.getName()); properties.put(SurrogateRegistration.SERVICE_REFERENCE, legacyService); context.registerService(SurrogateRegistration.class.getName(), this, properties); This happens due to the fact that r-OSGi incorrectly treats the surrogate as the service to be remoted. [0] http://r-osgi.sourceforge.net/advanced.html