Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » 3.5M6 Declarative Services
3.5M6 Declarative Services [message #594099] Sat, 28 March 2009 06:02
Lars Vogel is currently offline Lars VogelFriend
Messages: 1095
Registered: July 2009
Senior Member

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
Previous Topic:CertPathBuilderException from Plugin
Next Topic:Preference page resizes instead of label to wrap the text
Goto Forum:
  


Current Time: Mon Jun 14 05:53:59 GMT 2021

Powered by FUDForum. Page generated in 0.02023 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top