| Summary: | [r-OSGi][RemoteSrvs] Surrogates fail to work in OSGi remote services context | ||
|---|---|---|---|
| Product: | [RT] ECF | Reporter: | Markus Kuppe <bugs.eclipse.org> |
| Component: | ecf.protocols | Assignee: | ecf.core-inbox <ecf.core-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
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