You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by ju...@apache.org on 2017/11/20 23:02:02 UTC
aries-rsa git commit: adds fastbin examples
Repository: aries-rsa
Updated Branches:
refs/heads/master a0dc13349 -> ed3605428
adds fastbin examples
Project: http://git-wip-us.apache.org/repos/asf/aries-rsa/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-rsa/commit/ed360542
Tree: http://git-wip-us.apache.org/repos/asf/aries-rsa/tree/ed360542
Diff: http://git-wip-us.apache.org/repos/asf/aries-rsa/diff/ed360542
Branch: refs/heads/master
Commit: ed3605428e510504700077833e70315f5fe39e77
Parents: a0dc133
Author: Johannes Utzig <ju...@gmail.com>
Authored: Tue Nov 21 00:01:58 2017 +0100
Committer: Johannes Utzig <ju...@gmail.com>
Committed: Tue Nov 21 00:01:58 2017 +0100
----------------------------------------------------------------------
examples/echofastbin/Readme.md | 67 +++++++++++++++++
examples/echofastbin/fbapi/bnd.bnd | 1 +
examples/echofastbin/fbapi/pom.xml | 12 ++++
.../rsa/examples/fastbin/api/EchoService.java | 15 ++++
.../aries/rsa/examples/fastbin/api/packageinfo | 19 +++++
examples/echofastbin/fbconsumer/bnd.bnd | 1 +
examples/echofastbin/fbconsumer/pom.xml | 39 ++++++++++
.../examples/fastbin/consumer/EchoConsumer.java | 64 +++++++++++++++++
examples/echofastbin/fbservice/bnd.bnd | 1 +
examples/echofastbin/fbservice/pom.xml | 39 ++++++++++
.../fastbin/service/EchoServiceImpl.java | 53 ++++++++++++++
examples/echofastbin/pom.xml | 75 ++++++++++++++++++++
examples/pom.xml | 1 +
13 files changed, 387 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/Readme.md
----------------------------------------------------------------------
diff --git a/examples/echofastbin/Readme.md b/examples/echofastbin/Readme.md
new file mode 100644
index 0000000..1b492cb
--- /dev/null
+++ b/examples/echofastbin/Readme.md
@@ -0,0 +1,67 @@
+# Example echo fastbin
+
+Implements a simple echo service and exposes it using the Aries RSA fastbin provider.
+The echo services shows
+
+ * simple invocations
+ * InputStreams as parameters and return values
+ * Asynchronous Calls using Future/CompletableFuture as return value
+
+# Install
+
+Download Apache Karaf 4.1.3
+
+## Service
+Extract to container_a and start. In the shell execute the commands below:
+
+```
+feature:repo-add aries-rsa 1.11.0
+feature:install scr aries-rsa-provider-fastbin aries-rsa-discovery-zookeeper aries-rsa-discovery-zookeeper-server
+bundle:install -s mvn:org.apache.aries.rsa.examples.echofastbin/org.apache.aries.rsa.examples.echofastbin.fbapi
+bundle:install -s mvn:org.apache.aries.rsa.examples.echofastbin/org.apache.aries.rsa.examples.echofastbin.fbservice
+```
+
+The log should show that the service is exported using the fastbin provider and published to zookeeper.
+It should look similar to this:
+
+```
+2017-11-20 23:48:44,114 | INFO | pool-29-thread-5 | TopologyManagerExport | 59 - org.apache.aries.rsa.topology-manager - 1.11.0 | TopologyManager: export successful for [org.apache.aries.rsa.examples.fastbin.api.EchoService], endpoints: [{aries.fastbin.address=tcp://yourhostname:2544, component.id=2, component.name=org.apache.aries.rsa.examples.fastbin.service.EchoServiceImpl, endpoint.framework.uuid=8e247f92-5b51-4d66-8db5-7be03efe77a2, endpoint.id=698226447-37305-1511218094107-0-1, endpoint.package.version.org.apache.aries.rsa.examples.fastbin.api=1.0.0, endpoint.service.id=137, objectClass=[org.apache.aries.rsa.examples.fastbin.api.EchoService], service.bundleid=69, service.imported=true, service.imported.configs=[aries.fastbin], service.scope=bundle}]
+```
+
+## Consumer
+Extract to container_b and start. If both containers are running on the same host you need to make sure that both are using different fastbin ports. To do that create a file `etc/org.apache.aries.rsa.provider.fastbin.cfg` with the following contents:
+
+```
+uri=tcp://0.0.0.0:5000
+```
+
+This will open the fastbin server on all interfaces on port 5000.
+In the shell execute the commands below:
+
+```
+feature:repo-add aries-rsa 1.11.0
+feature:install scr aries-rsa-provider-fastbin aries-rsa-discovery-zookeeper
+bundle:install -s mvn:org.apache.aries.rsa.examples.echofastbin/org.apache.aries.rsa.examples.echofastbin.fbapi
+bundle:install -s mvn:org.apache.aries.rsa.examples.echofastbin/org.apache.aries.rsa.examples.echofastbin.fbconsumer
+```
+
+The consumer should start and show:
+karaf@root()> Sending to echo service: echo
+Good morning
+Sending to echo service: async
+Sending to echo service: stream
+Good morning received as a stream
+Sending to echo service: stream2
+Good morning send as a stream
+Good morning Async
+
+The log should show that the discovery picks up the endpoint from zookeeper and that the RemoteServiceAdmin imports the service.
+
+```
+2017-11-20 23:55:51,415 | INFO | er])-EventThread | InterfaceMonitor | 55 - org.apache.aries.rsa.discovery.zookeeper - 1.11.0 | Processing change on node: /osgi/service_registry/org/apache/aries/rsa/examples/fastbin/api/EchoService
+2017-11-20 23:55:51,422 | INFO | er])-EventThread | InterfaceMonitor | 55 - org.apache.aries.rsa.discovery.zookeeper - 1.11.0 | found new node /osgi/service_registry/org/apache/aries/rsa/examples/fastbin/api/EchoService/[null#-1#698226447-37305-1511218094107-0-1] ( []->child ) props: [tcp://yourhostname:2544, 2, org.apache.aries.rsa.examples.fastbin.service.EchoServiceImpl, 8e247f92-5b51-4d66-8db5-7be03efe77a2, 698226447-37305-1511218094107-0-1, 1.0.0, 137, [Ljava.lang.String;@12f10073, 69, true, [Ljava.lang.String;@22e61067, bundle]
+2017-11-20 23:55:51,423 | INFO | er])-EventThread | InterfaceMonitorManager | 55 - org.apache.aries.rsa.discovery.zookeeper - 1.11.0 | calling EndpointListener.endpointAdded: org.apache.aries.rsa.topologymanager.importer.TopologyManagerImport@4f6cbd90 from bundle org.apache.aries.rsa.topology-manager for endpoint: {aries.fastbin.address=tcp://yourhostname:2544, component.id=2, component.name=org.apache.aries.rsa.examples.fastbin.service.EchoServiceImpl, endpoint.framework.uuid=8e247f92-5b51-4d66-8db5-7be03efe77a2, endpoint.id=698226447-37305-1511218094107-0-1, endpoint.package.version.org.apache.aries.rsa.examples.fastbin.api=1.0.0, endpoint.service.id=137, objectClass=[org.apache.aries.rsa.examples.fastbin.api.EchoService], service.bundleid=69, service.imported=true, service.imported.configs=[aries.fastbin], service.scope=bundle}
+2017-11-20 23:55:51,433 | INFO | pool-30-thread-1 | RemoteServiceAdminCore | 52 - org.apache.aries.rsa.core - 1.11.0 | Importing service 698226447-37305-1511218094107-0-1 with interfaces [org.apache.aries.rsa.examples.fastbin.api.EchoService] using handler class org.apache.aries.rsa.provider.fastbin.FastBinProvider.
+
+```
+
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbapi/bnd.bnd
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbapi/bnd.bnd b/examples/echofastbin/fbapi/bnd.bnd
new file mode 100644
index 0000000..465d3bd
--- /dev/null
+++ b/examples/echofastbin/fbapi/bnd.bnd
@@ -0,0 +1 @@
+Export-Package: org.apache.aries.rsa.examples.fastbin.api
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbapi/pom.xml
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbapi/pom.xml b/examples/echofastbin/fbapi/pom.xml
new file mode 100644
index 0000000..61bd816
--- /dev/null
+++ b/examples/echofastbin/fbapi/pom.xml
@@ -0,0 +1,12 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.aries.rsa.examples</groupId>
+ <artifactId>org.apache.aries.rsa.examples.echofastbin</artifactId>
+ <version>1.12.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <groupId>org.apache.aries.rsa.examples.echofastbin</groupId>
+ <artifactId>org.apache.aries.rsa.examples.echofastbin.fbapi</artifactId>
+ <packaging>bundle</packaging>
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbapi/src/main/java/org/apache/aries/rsa/examples/fastbin/api/EchoService.java
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbapi/src/main/java/org/apache/aries/rsa/examples/fastbin/api/EchoService.java b/examples/echofastbin/fbapi/src/main/java/org/apache/aries/rsa/examples/fastbin/api/EchoService.java
new file mode 100644
index 0000000..cfb2d27
--- /dev/null
+++ b/examples/echofastbin/fbapi/src/main/java/org/apache/aries/rsa/examples/fastbin/api/EchoService.java
@@ -0,0 +1,15 @@
+package org.apache.aries.rsa.examples.fastbin.api;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.concurrent.CompletableFuture;
+
+public interface EchoService {
+ public String echo(String msg);
+
+ public CompletableFuture<String> echoAsync(String msg);
+
+ public InputStream echoStream(String msg);
+
+ public String echoStream2(InputStream msg) throws IOException;
+}
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbapi/src/main/java/org/apache/aries/rsa/examples/fastbin/api/packageinfo
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbapi/src/main/java/org/apache/aries/rsa/examples/fastbin/api/packageinfo b/examples/echofastbin/fbapi/src/main/java/org/apache/aries/rsa/examples/fastbin/api/packageinfo
new file mode 100644
index 0000000..c72722a
--- /dev/null
+++ b/examples/echofastbin/fbapi/src/main/java/org/apache/aries/rsa/examples/fastbin/api/packageinfo
@@ -0,0 +1,19 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+version 1.0.0
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbconsumer/bnd.bnd
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbconsumer/bnd.bnd b/examples/echofastbin/fbconsumer/bnd.bnd
new file mode 100644
index 0000000..f29f0a2
--- /dev/null
+++ b/examples/echofastbin/fbconsumer/bnd.bnd
@@ -0,0 +1 @@
+-dsannotations: *
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbconsumer/pom.xml
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbconsumer/pom.xml b/examples/echofastbin/fbconsumer/pom.xml
new file mode 100644
index 0000000..c218040
--- /dev/null
+++ b/examples/echofastbin/fbconsumer/pom.xml
@@ -0,0 +1,39 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.aries.rsa.examples</groupId>
+ <artifactId>org.apache.aries.rsa.examples.echofastbin</artifactId>
+ <version>1.12.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <groupId>org.apache.aries.rsa.examples.echofastbin</groupId>
+ <artifactId>org.apache.aries.rsa.examples.echofastbin.fbconsumer</artifactId>
+ <packaging>bundle</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.aries.rsa.examples.echofastbin</groupId>
+ <artifactId>org.apache.aries.rsa.examples.echofastbin.fbapi</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbconsumer/src/main/java/org/apache/aries/rsa/examples/fastbin/consumer/EchoConsumer.java
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbconsumer/src/main/java/org/apache/aries/rsa/examples/fastbin/consumer/EchoConsumer.java b/examples/echofastbin/fbconsumer/src/main/java/org/apache/aries/rsa/examples/fastbin/consumer/EchoConsumer.java
new file mode 100644
index 0000000..d653db5
--- /dev/null
+++ b/examples/echofastbin/fbconsumer/src/main/java/org/apache/aries/rsa/examples/fastbin/consumer/EchoConsumer.java
@@ -0,0 +1,64 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.rsa.examples.fastbin.consumer;
+
+import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.nio.charset.StandardCharsets;
+
+import org.apache.aries.rsa.examples.fastbin.api.EchoService;
+import org.osgi.service.component.annotations.Activate;
+import org.osgi.service.component.annotations.Component;
+import org.osgi.service.component.annotations.Reference;
+
+@Component(immediate=true)
+public class EchoConsumer {
+
+ EchoService echoService;
+
+ @Activate
+ public void activate() throws IOException {
+ System.out.println("Sending to echo service: echo");
+ System.out.println(echoService.echo("Good morning"));
+
+
+ System.out.println("Sending to echo service: async");
+ echoService.echoAsync("Async Good morning").thenRun(() -> System.out.println("Good morning Async"));
+
+ System.out.println("Sending to echo service: stream");
+ InputStream inputStream = echoService.echoStream("Good morning received as a stream");
+ try (BufferedReader r = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8))) {
+ System.out.println(r.readLine());
+ }
+
+ System.out.println("Sending to echo service: stream2");
+ System.out.println(echoService.echoStream2(new ByteArrayInputStream("Good morning send as a stream".getBytes(StandardCharsets.UTF_8))));
+
+ }
+
+
+ @Reference
+ public void setEchoService(EchoService echoService) throws IOException {
+ this.echoService = echoService;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbservice/bnd.bnd
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbservice/bnd.bnd b/examples/echofastbin/fbservice/bnd.bnd
new file mode 100644
index 0000000..67edb3b
--- /dev/null
+++ b/examples/echofastbin/fbservice/bnd.bnd
@@ -0,0 +1 @@
+-dsannotations: *
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbservice/pom.xml
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbservice/pom.xml b/examples/echofastbin/fbservice/pom.xml
new file mode 100644
index 0000000..6d4b476
--- /dev/null
+++ b/examples/echofastbin/fbservice/pom.xml
@@ -0,0 +1,39 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.aries.rsa.examples</groupId>
+ <artifactId>org.apache.aries.rsa.examples.echofastbin</artifactId>
+ <version>1.12.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <groupId>org.apache.aries.rsa.examples.echofastbin</groupId>
+ <artifactId>org.apache.aries.rsa.examples.echofastbin.fbservice</artifactId>
+ <packaging>bundle</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.aries.rsa.examples.echofastbin</groupId>
+ <artifactId>org.apache.aries.rsa.examples.echofastbin.fbapi</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/fbservice/src/main/java/org/apache/aries/rsa/examples/fastbin/service/EchoServiceImpl.java
----------------------------------------------------------------------
diff --git a/examples/echofastbin/fbservice/src/main/java/org/apache/aries/rsa/examples/fastbin/service/EchoServiceImpl.java b/examples/echofastbin/fbservice/src/main/java/org/apache/aries/rsa/examples/fastbin/service/EchoServiceImpl.java
new file mode 100644
index 0000000..e26d71c
--- /dev/null
+++ b/examples/echofastbin/fbservice/src/main/java/org/apache/aries/rsa/examples/fastbin/service/EchoServiceImpl.java
@@ -0,0 +1,53 @@
+package org.apache.aries.rsa.examples.fastbin.service;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
+import java.util.concurrent.CompletableFuture;
+
+import org.apache.aries.rsa.examples.fastbin.api.EchoService;
+import org.osgi.service.component.annotations.Component;
+
+@Component(//
+ property = {
+ "service.exported.interfaces=*",
+ "service.exported.configs=aries.fastbin"
+ })
+public class EchoServiceImpl implements EchoService {
+
+ @Override
+ public String echo(String msg) {
+ return msg;
+ }
+
+ @Override
+ public CompletableFuture<String> echoAsync(final String msg) {
+ return CompletableFuture.supplyAsync(() -> {
+ try {
+ Thread.sleep(5000);
+ } catch (InterruptedException e) {
+ throw new RuntimeException(e);
+ }
+ return msg;
+ });
+ }
+
+ @Override
+ public InputStream echoStream(String msg) {
+ return new ByteArrayInputStream(msg.getBytes(StandardCharsets.UTF_8));
+ }
+
+ @Override
+ public String echoStream2(InputStream msg) throws IOException {
+ ByteArrayOutputStream result = new ByteArrayOutputStream();
+ byte[] buffer = new byte[1024];
+ int length;
+ while ((length = msg.read(buffer)) != -1) {
+ result.write(buffer, 0, length);
+ }
+ return result.toString("UTF-8");
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/echofastbin/pom.xml
----------------------------------------------------------------------
diff --git a/examples/echofastbin/pom.xml b/examples/echofastbin/pom.xml
new file mode 100644
index 0000000..e646444
--- /dev/null
+++ b/examples/echofastbin/pom.xml
@@ -0,0 +1,75 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+ license agreements. See the NOTICE file distributed with this work for additional
+ information regarding copyright ownership. The ASF licenses this file to
+ you under the Apache License, Version 2.0 (the "License"); you may not use
+ this file except in compliance with the License. You may obtain a copy of
+ the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+ by applicable law or agreed to in writing, software distributed under the
+ License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+ OF ANY KIND, either express or implied. See the License for the specific
+ language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.aries.rsa</groupId>
+ <artifactId>org.apache.aries.rsa.examples</artifactId>
+ <version>1.12.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.apache.aries.rsa.examples</groupId>
+ <artifactId>org.apache.aries.rsa.examples.echofastbin</artifactId>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>fbapi</module>
+ <module>fbservice</module>
+ <module>fbconsumer</module>
+ </modules>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>3.0.1</version>
+ <extensions>true</extensions>
+ <configuration>
+ <obrRepository>NONE</obrRepository>
+ <instructions>
+ <Export-Package>!*</Export-Package>
+ <_include>-bnd.bnd</_include>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.5.1</version>
+ <configuration>
+ <source>1.8</source>
+ <target>1.8</target>
+ <maxmem>256M</maxmem>
+ <fork>false</fork>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/ed360542/examples/pom.xml
----------------------------------------------------------------------
diff --git a/examples/pom.xml b/examples/pom.xml
index c074c15..1afc27d 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -39,5 +39,6 @@
<modules>
<module>echotcp</module>
+ <module>echofastbin</module>
</modules>
</project>