Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Automatically set IP address in a declarative service (ideas or best practices?)
Automatically set IP address in a declarative service (ideas or best practices?) [message #658448] Tue, 08 March 2011 14:58 Go to next message
Pablo Mising name is currently offline Pablo Mising nameFriend
Messages: 24
Registered: July 2010
Junior Member
Hi all.

I am doing research about distributed and service-oriented algorithms in clusters and heterogeneous networks, and I would like to use OSGi and ECF in my thesis.

Due to I want to do research in P2P topographies (that is, not all-to-all connections), I would like to deploy ECF in several nodes of a cluster and doing the services bindings manually (or semi-automatic). For example, bundle A in Node A requires service B from Node B and service C from node C and B.

So, the idea is to expose all service hosts in DS way and bind manually or also in a declarative way, but I have several doubts:

- The first one is about setting "org.eclipse.ecf.containerFactoryArgs" in each service to expose. In DS you can set it in the xml description file, but, this URL will be different in each node, so I should change in every xml in every node? Or I could access to ComponentContext properties and set the ip in the activate() method of the component? (reading this URL from command line or whatever). Is this a good programming practice?

- My second doubt is related to the first: how can I execute the activate() method of a componet before being used or bound by a consumer? I think that this is possible, but I don't know how to do it.

- My final doubt is how to say to each node which service of what node must chose. I've thought in using filters of the service registry. filtering by IPs and other properties, but also I want to know wich is the best programming practice to do it. Maybe I should investigate Zookeeper?

Or maybe should I wait until Remote Services Admin (RSA) becomes available along this month? Perhaps it could be the solution to all my problems : )

Thanks in advance.

EDIT: Agh, I did not remember that Scott Lewis answered me several months ago in another thread. It includes useful information to take into account. Sorry about duplication of threads.

[Updated on: Tue, 08 March 2011 15:11]

Report message to a moderator

Re: Automatically set IP address in a declarative service (ideas or best practices?) [message #658909 is a reply to message #658448] Thu, 10 March 2011 12:20 Go to previous messageGo to next message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
On 03/08/2011 03:58 PM, Pablo wrote:
> Hi all.
> I am doing research about distributed and service-oriented algorithms in
> clusters and heterogeneous networks, and I would like to use OSGi and
> ECF in my thesis.
>
> Due to I want to do research in P2P topographies (that is, not
> all-to-all connections), I would like to deploy ECF in several nodes of
> a cluster and doing the services bindings manually (or semi-automatic).
> For example, bundle A in Node A requires service B from Node B and
> service C from node C and B.
>
> So, the idea is to expose all service hosts in DS way and bind manually
> or also in a declarative way, but I have several doubts:
>
> - The first one is about setting "org.eclipse.ecf.containerFactoryArgs"
> in each service to expose. In DS you can set it in the xml description
> file, but, this IP will be different in each node, so I should change in
> every xml in every node? Or I could access to ComponentContext
> properties and set the ip in the activate() method of the component?
> (reading this IP from command line or whatever). Is this a good
> programming practice?
>
> - My second doubt is related to the first: how can I execute the
> activate() method of a componet before being used or bound by a
> consumer? I think that this is possible, but I don't know how to do it.
>
> - My final doubt is how to say to each node which service of what node
> must chose. I've thought in using filters of the service registry.
> filtering by IPs and other properties, but also I want to know wich is
> the best programming practice to do it. Maybe I should investigate
> Zookeeper?
>
> Or maybe should I wait until Remote Services Admin (RSA) becomes
> available along this month? Perhaps it could be the solution to all my
> problems : )
>
> Thanks in advance.

Hi Pablo,

you might want to move this thread over to the ecf-dev mailinglist [0].
Not many devs read the newsgroup.

Markus

[0] https://dev.eclipse.org/mailman/listinfo/ecf-dev
Re: Automatically set IP address in a declarative service (ideas or best practices?) [message #659507 is a reply to message #658909] Mon, 14 March 2011 11:21 Go to previous messageGo to next message
Pablo Mising name is currently offline Pablo Mising nameFriend
Messages: 24
Registered: July 2010
Junior Member
Yep, I was subscribed, but I read in the list main page that users (and not developers) should post here.

However, it seems that yesterday ECF 3.5 was released. I'll take a look to RSA and edef[1] files examples. Also, the new Integrator's Guide [2] with all documentation properly organized would help. Excellent work!

Thanks for your answer, Markus. If nobody post here I'll ask in the mailing list. It could be a good idea to create a new wiki page about programming best practices in ECF (or OSGi). When I become and expert I will contribute : )

[1] http:// wiki.eclipse.org/File-based_Discovery_with_the_Endpoint_Desc ription_Extender_Format
[2] http://wiki.eclipse.org/EIG:Integrators_Guide
Re: Automatically set IP address in a declarative service (ideas or best practices?) [message #659542 is a reply to message #659507] Mon, 14 March 2011 13:42 Go to previous message
Markus Kuppe is currently offline Markus KuppeFriend
Messages: 177
Registered: July 2009
Senior Member
On 03/14/2011 12:21 PM, Pablo wrote:
> Yep, I was subscribed, but I read in the list main page that users (and
> not developers) should post here.

Most ECF devs don't have the resources to follow both the mailinglist as
well as the newsgroup. We are even trying to merge them technically [0].
So feel free to post your questions to ecf-dev even if it says it's
reserved for development issues.

Markus

[0] https://bugs.eclipse.org/339624
Previous Topic:Issue with Hello Service DS Host example
Next Topic:Unable to access the ECF Git Repository
Goto Forum:
  


Current Time: Mon Jun 18 15:49:57 GMT 2018

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

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

Back to the top