|Re: Extending ECPReferenceService [message #1755146 is a reply to message #1755134]
||Tue, 28 February 2017 12:11
| Jonas Helming
Registered: September 2016
in the example that I attached, the viewmodelservice was still registered via extension point. This worked for me and it still does in the attached example. When looking at your product config, the view model service plugin is not in there. So please check this (see also my first comment in this thread).
The registration via ServiceFactory is preferred, thats why I added an example for that. You are right, to make that work, you need to register the factory as an OSGi service. In your attached example, you have renamed/moved the component.xml after it has been created. If you do that, you need to update its entry in the MANIFEST.MF
for your example it would be:
There was actually a message on the console telling this (that the component.xml can not be found). Additionally there is a warning on the build.properteis, that you should include the folder OSGI-INF.
When fixing these three things in your example (adding the bundle to the product, the entry in the MANFIFEST:MF and the build.properties) the registration of the reference service works using both mechnsim, the extension point and the factory.
Get professional Eclipse developer support:
Powered by FUDForum
. Page generated in 0.03727 seconds