Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327063

Summary: [r-OSGi][RemoteSrvs] Surrogates fail to work in OSGi remote services context
Product: [RT] ECF Reporter: Markus Kuppe <bugs.eclipse.org>
Component: ecf.protocolsAssignee: 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:

Description Markus Kuppe CLA 2010-10-06 02:42:36 EDT
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