[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dsdp.ercp] Re: Declarative OSGi services in eRCP

Hi Markus,

You can find the latest nightly build of eRCP at 
http://download.eclipse.org/dsdp/ercp/downloads/ in case you need to try DS 
with eRCP. The latest nightly build is synced with Eclipse 3.4 (for core 
part).




"Markus" <markus.bach@xxxxxxxxxxxxx> 
???????:cab659e22f7c20d7cb9527d3cd35afac$1@xxxxxxxxxxxxxxxxxx
> Hi,
>
> does eRCP support declarative servcies of OSGi. I took the 1.1.1 release 
> and added the plug-ins
> org.eclipse.equinox.ds_1.0.0.v20070226.jar
> org.eclipse.equinox.cm_3.2.0.v20070116.jar
> org.eclipse.osgi.util_3.1.200.v20070605.jar
>
> from Rclipse 3.3.2 release. If i look at them in the OSGi console, they 
> are all activated properly, but the servcie I declared as follows does not 
> appear:
>
> <?xml version="1.0"?>
> <component name="testComponent">
> <implementation class="test.Test"/>
> <reference name="testService" interface="org.osgi.servcie.log.LogServcie" 
> bind="setLs" unbind="unsetLs"/>
> </component>
>
> public class Test {
>    private LogService ls;
>
>    public void setLs(LogService ls) {
>        this.ls = ls;
>    }
>
>    public void unsetLs(LogService ls) {
>        this.ls = null;
>    }
>
>    protected void activate(ComponentContext ctx) {
>        ls.log(LogService.LOG_ERROR, "hallo");
>    }
> }
>
> If I place a breakpoint in the above methods, I can see, that the are not 
> called. I also placed the Service-Component in the MANIFEST.MF.
>
> What could be wrong? Or is there no support for?
>
> By the way I await the 1.2 release of eRCP. When is it planned to be 
> released?
>
> Regards
>
> Markus
>