3.5M6 Declarative Services [message #594099] |
Sat, 28 March 2009 06:02 |
|
Hi,
I tried 3.5M6 Declarative Services. I created a new plug-in project
based on the "Hello OSGi Declarative Service" template.
I then created a new Interface ITest with a simple String getText()
method definition, adjusted the generated ServiceComponent (implements
ITest) and added the Service to component.xml
---------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"
name="de.vogella.osgi.testing">
<implementation class="de.vogella.osgi.testing.ServiceComponent"/>
<service>
<provide
interface="org.eclipse.osgi.framework.console.CommandProvider "/>
<provide interface="de.vogella.osgi.testing.ITest"/>
</service>
</scr:component>
----------------------------------
If I start my bundle I see that is running (ss in the OSGi console).
id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.0.v20090311-1300
3 ACTIVE de.vogella.osgi.testing_1.0.0
Gut I do not see my ITest service if I type "services" in the OSGi console.
Any advice?
Best regards, Lars
|
|
|
Powered by
FUDForum. Page generated in 0.02670 seconds