Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327063 - [r-OSGi][RemoteSrvs] Surrogates fail to work in OSGi remote services context
Summary: [r-OSGi][RemoteSrvs] Surrogates fail to work in OSGi remote services context
Status: NEW
Alias: None
Product: ECF
Classification: RT
Component: ecf.protocols (show other bugs)
Version: 3.3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: ecf.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-06 02:42 EDT by Markus Kuppe CLA
Modified: 2010-10-06 02:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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