使用ECF的远程OSGI:BND的捆绑要求

时间:2018-04-11 19:46:02

标签: osgi bndtools dosgi

有人可以指出我在这个bndrun文件中缺少的bundle是用于在OSGI框架中注册远程服务的。我在链接Building your first remote osgi service中按照以下示例进行操作。

我已经注册了这样的服务:

    public void start(BundleContext context) throws Exception {
    Dictionary<String, String> props = new Hashtable<>();
    props.put("service.exported.interfaces", "*");
    props.put("service.exported.configs", "ecf.generic.server");
    context.registerService(ITimeService.class.getName(),
                new TimeServiceImpl(), props);
}

这是我的bndrun文件的runrequires部分:

runrequires: \
osgi.identity;filter:='(osgi.identity=org.siu.casa.timeservice.host.org.siu.casa.timeservice.host.api.impl)',\
osgi.identity;filter:='(osgi.identity=org.siu.casa.timeservice.host.org.siu.casa.timeservice.api)',\
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)',\
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.runtime)',\
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.shell)',\
osgi.identity;filter:='(&(osgi.identity=org.osgi.service.event)(version>=1.3.1))',\
osgi.identity;filter:='(osgi.identity=org.eclipse.ecf)',\
osgi.identity;filter:='(osgi.identity=org.eclipse.ecf.discovery)',\
osgi.identity;filter:='(osgi.identity=org.eclipse.ecf.identity)',\
osgi.identity;filter:='(osgi.identity=org.eclipse.ecf.osgi.services.remoteserviceadmin)',\
osgi.identity;filter:='(osgi.identity=org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy)',\
osgi.identity;filter:='(osgi.identity=org.eclipse.ecf.provider.remoteservice)',\
osgi.identity;filter:='(&(osgi.identity=org.eclipse.equinox.registry)(version>=3.5.400))'

0 个答案:

没有答案