[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ecf-dev] getting started with ECF
|
Hi David,
You do need to explicitly add org.eclipse.ecf.provider.remoteservice for
the use of the generic provider. The reason that bundle
(org.eclipse.ecf.provider.remoteservice) is *not* included in the
product below is because it was created to use r-OSGi, which implements
the IRemoteServiceContainerAdapter directly. The implementation for the
generic client and server IRemoteServiceContainerAdapter is exposed by
an adapter factory that is present in the
org.eclipse.ecf.provider.remoteservice bundle...so when using the
generic provider, this additional bundle
(org.eclipse.ecf.provider.remoteservice) is needed.
Also...if you change the product's contents, it's prudent (although
somewhat superstitious) to explicitly
So I think what I will do to make this easier for everyone in the future
is to create new product files in the hello examples...i.e. one for
r-OSGi (with the existing contents), and one for ECF generic (that
includes the org.eclipse.ecf.provider.remoteservice bundle among
others). I've created a bug to this effect here for tracking:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290439.
Thanks,
Scott
David Donohue wrote:
Remy,
Many thanks for your help. I think this bundle is in my launch
configuration. Not 100% sure because i am not accustomed to using
products (I am launching the app by clicking "Launch an Eclipse
application" from within the product for bundle
org.eclipse.ecf.examples.remoteservices.hello.host.rs)
Looking at the product's dependencies, I see these
<plugin id="org.eclipse.core.jobs"/>
<plugin id="org.eclipse.ecf"/>
<plugin id="org.eclipse.ecf.discovery"/>
<plugin id="org.eclipse.ecf.examples.remoteservices.hello"/>
<plugin id="org.eclipse.ecf.examples.remoteservices.hello.host.rs"/>
<plugin id="org.eclipse.ecf.identity"/>
<plugin id="org.eclipse.ecf.provider"/>
<plugin id="org.eclipse.ecf.remoteservice"/>
<plugin id="org.eclipse.ecf.sharedobject"/>
<plugin id="org.eclipse.ecf.ssl" fragment="true"/>
<plugin id="org.eclipse.equinox.common"/>
<plugin id="org.eclipse.equinox.concurrent"/>
<plugin id="org.eclipse.equinox.registry"/>
<plugin id="org.eclipse.osgi"/>
<plugin id="org.eclipse.osgi.services"/>
<plugin id="org.objectweb.asm"/>
Looking at the bundle's imported packages, i see these.
org.eclipse.ecf.core;version="3.0.0",
org.eclipse.ecf.core.identity;version="3.0.0",
org.eclipse.ecf.examples.remoteservices.hello,
org.eclipse.ecf.examples.remoteservices.hello.impl,
org.eclipse.ecf.remoteservice,
org.osgi.framework;version="1.3.0",
org.osgi.util.tracker
Thanks again,
Dave Donohue
On Thu, Sep 24, 2009 at 7:36 AM, Remy Suen <remysuen@xxxxxxxxxx> wrote:
ecf-dev-bounces@xxxxxxxxxxx wrote on 24/09/2009 06:51:44 AM:
Again my thanks! Now I am getting
java.lang.NullPointerException
on this line
serviceRegistration = containerAdapter.registerRemoteService(
new String[] { IHello.class.getName() }, new Hello(), null);
I'm guessing 'containerAdapter' is null. I think this may be caused by the
absence of the org.eclipse.ecf.provider.remoteservice bundle in your launch
configuration.
Regards,
Remy
----------
Remy Suen
Rational Team Concert Developer, Eclipse Platform/UI Committer
IBM Ottawa
613-356-5162
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev