Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » ECF + Karaf + Zookeeper
ECF + Karaf + Zookeeper [message #1742610] Tue, 06 September 2016 07:28 Go to next message
Alex Weirig is currently offline Alex WeirigFriend
Messages: 4
Registered: July 2009
Junior Member
Hello,

I have 3 OSGi runtimes on 3 different virtual machines in different subnets. There is no broadcasting between the subnets.

I would like to be able to use ECF inside Karaf and use Zookeeper to handle the remote/distributed bundles between the OSGi runtimes.

I have installed Karaf 4.0.6 and installed ECF SDK (latest). Here is a list of the bundles.
karaf@root()> list
START LEVEL 100 , List Threshold: 50
ID | State | Lvl | Version | Name
---------------------------------------------------------------------------------------------------
96 | Active | 80 | 3.7.0.v20150330-2103 | Eclipse Jobs Mechanism
97 | Active | 80 | 3.8.0.v20160823-2221 | ECF Core API
98 | Active | 80 | 5.0.200.v20160823-2221 | ECF Discovery API
99 | Active | 80 | 3.7.0.v20160823-2221 | ECF Identity Core API
100 | Active | 80 | 2.1.0.v20160823-2221 | ECF Remote Service Admin (RSA) Basic Topology Manager
101 | Active | 80 | 4.4.2.v20160823-2221 | ECF Remote Service Admin (RSA) Implementation
102 | Active | 80 | 1.0.0.v20160823-2221 | ECF Remote Service Admin (RSA) Proxy
103 | Active | 80 | 4.7.500.v20160823-2221 | ECF Generic Provider
105 | Active | 80 | 4.2.100.v20160823-2221 | ECF Generic Provider RemoteServices Support
106 | Active | 80 | 8.11.0.v20160823-2221 | ECF RemoteServices API
107 | Active | 80 | 2.0.100.v20150702-1411 | ECF RemoteServices AsyncProxy API Java8
108 | Active | 80 | 2.5.100.v20160823-2221 | ECF SharedObject API
109 | Active | 50 | 3.7.0.v20150402-1709 | Common Eclipse Runtime
110 | Active | 80 | 1.1.0.v20130327-1442 | Equinox Concurrent API
111 | Active | 80 | 1.6.0.v20141009-1504 | Supplemental Equinox Functionality
112 | Active | 80 | 1.6.100.v20160823-2221 | OSGi R6 RemoteServiceAdmin API
113 | Active | 80 | 3.3.3.v201105210832 | Apache ZooKeeper
115 | Active | 80 | 1.2.100.v20160823-2221 | ECF Discovery ZooKeeper Provider

There is a zookeeper server running in each VM together with the OSGi runtime, ports are 2222 and 2223.

I use Eclipse with bnd(tools) to write my code and I have the following
@Component(
immediate = true
, property = {
"service.exported.interfaces=com.example.ServiceConsumerAPI"
, "service.exported.configs=ecf.generic.server"
, "ecf.generic.server.id=ecftcp://myserver.mydomain:2230/service"
}
, service = ServiceConsumerAPI.class
)

I'm not sure what to use in "service.exported.configs" and "ecf.generic.server.id" to get the service from Karaf published in my zookeeper server. I used this code when my Karaf instances where running inside the same subnet and thus broadcasting was possible.

Many thanks in advance for your precious feedback.

Regards,

Alex
Re: ECF + Karaf + Zookeeper [message #1742691 is a reply to message #1742610] Tue, 06 September 2016 16:23 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1030
Registered: July 2009
Senior Member
Hi Alex,

Alex Weirig wrote on Tue, 06 September 2016 03:28
Hello,

<stuff deleted>
I'm not sure what to use in "service.exported.configs" and "ecf.generic.server.id" to get the service from Karaf published in my zookeeper server. I used this code when my Karaf instances where running inside the same subnet and thus broadcasting was possible.

<stuff deleted>


I think you will need to refer to this page:

https://wiki.eclipse.org/Zoodiscovery

for information on configuring the Zookeeper instances.

See particularly the section: 'How to configure ZooDiscovery container'

If you need more assistance WRT Zookeeper Wim Jongman (ecf committer) is the maintainer of that component and its documentation. You can find him on the ecf-dev mailing list most easily

https://dev.eclipse.org/mailman/listinfo/ecf-dev


Re: ECF + Karaf + Zookeeper [message #1742737 is a reply to message #1742691] Wed, 07 September 2016 05:49 Go to previous message
Alex Weirig is currently offline Alex WeirigFriend
Messages: 4
Registered: July 2009
Junior Member
Hi Scott,

thank you very much for you reply. I know the wiki page and found that it is really clear how to transpose the instructions to Karaf and DS.

I'll try to contact Wim and maybe we can add some documentation to the page.

Regards,

Alex
Previous Topic:news.eclipse.org is shutting down.
Next Topic:Mutiple DistributionProviders for a the same component
Goto Forum:
  


Current Time: Fri Nov 16 04:05:08 GMT 2018

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

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

Back to the top