Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] New topic in forum Eclipse Communications Framework (ECF), called ECF + Karaf + Zookeeper, by Alex Weirig

Title: Eclipse Community Forums
Subject: ECF + Karaf + Zookeeper Author: Alex Weirig Date: Tue, 06 September 2016 03:28
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
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top