Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] ECF-RFC119 with R-OSGi and SLP discovery:ClassCastException

Hi Juergen,

Why not contribute your example and docs?...and I will include them/use them in the documentation and examples I'm working on.

If this works for you please just open a bug, attach the code to the bug...and feel free to add to the ECF wiki: wiki.eclipse.org/ECF with documentation...as I would like to have examples using DS, not using DS, etc. As I mentioned yesterday, I am working on documentation...so that everyone can be aware of why things are happening/not happening and how to track down issues of usage, implementation, networking, local environment, or tooling.

Thanks,

Scott

Juergen.Schumacher@xxxxxxxxxxx wrote:
Bryan,
Of course, I can try ... but indeed it has been quite a lot of trial and error and doing things
I'm not completely aware of why I'm doing them (:

Well I have:
- an "init" bundle with an activator that creates an R-OSGi container, i.e. something like
  getContainerManager().getContainerFactory().createContainer("ecf.r_osgi.peer");
  (I copied this from the EclipseCon tutorial code).
  it also contains the interface of my remote service (just a HelloWorld-thing)
- one bundle that contains the server implementation and DS component description
- one bundle that contains the client implementation and - List of bundles: In the launch config I selected
  - my "init" bundle + the server or client bundle
  - ...equinox.ds
  - ...ecf.osgi.services.distribution and ... discovery
  - the two r_osgi bundles
  - the jmdns bundle
  and pressed "Add required bundles".
- In the VM arguments of the launches I added "-Dnet.slp.port=65427 -Dnet.mdns.port=65353".
  I think I also found this in the EclipseCon tutorial samples.

I replayed this just now and it still seems to work. I noticed however, that the start level of
the DS bundle can be critical. There were times when I needed to increase it above the default
start level. This probably relates to your issue 277008, I suppose.
If you want to, I can also send you my helloworld bundles, there's nothing secret in them (-;

Cheers,
Jürgen.


-----Original Message-----
From: ecf-dev-bounces@xxxxxxxxxxx [mailto:ecf-dev-bounces@xxxxxxxxxxx]
On Behalf Of Bryan Hunt
Sent: Wednesday, May 20, 2009 3:58 PM
To: Eclipse Communication Framework (ECF) developer mailing list.
Subject: Re: [ecf-dev] ECF-RFC119 with R-OSGi and SLP
discovery:ClassCastException

Jurgen,

Any chance you could share your recipe for getting JMDNS working?  As
you might have seen, I'm in the process of doing the exact same thing
as you ... getting RFC 119 working with DS.  I'm currently trying to
get discovery working with the ECF service discovery view and I'm
having some problems.  Could you list the bundles you've included and
started on the client and server, the port numbers you are using, and
anything you did in code to bootstrap the discovery service?

Bryan

On May 20, 2009, at 8:41 AM, Juergen.Schumacher@xxxxxxxxxxx wrote:

Hi,

I'm currently experimenting with your RFC119 implementation which we
want to use in SMILA soon.
I have it working now when using the JMDNS discovery but not with
the jSLP discovery.
_______________________________________________
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



Back to the top