karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject [12/35] karaf-boot git commit: Use correct started in blueprint sample. Add README
Date Mon, 09 May 2016 14:48:31 GMT
Use correct started in blueprint sample. Add README


Project: http://git-wip-us.apache.org/repos/asf/karaf-boot/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-boot/commit/d68761ca
Tree: http://git-wip-us.apache.org/repos/asf/karaf-boot/tree/d68761ca
Diff: http://git-wip-us.apache.org/repos/asf/karaf-boot/diff/d68761ca

Branch: refs/heads/master
Commit: d68761cadd818e095794c1aa2c5507492c1d8ff8
Parents: dcdd4b4
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Mon Nov 2 08:06:52 2015 +0100
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Mon Nov 2 08:06:52 2015 +0100

----------------------------------------------------------------------
 .../README.md                                   | 26 ++++++++++++++++++++
 .../pom.xml                                     |  5 ++--
 2 files changed, 28 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-boot/blob/d68761ca/karaf-boot-samples/karaf-boot-sample-service-provider-blueprint/README.md
----------------------------------------------------------------------
diff --git a/karaf-boot-samples/karaf-boot-sample-service-provider-blueprint/README.md b/karaf-boot-samples/karaf-boot-sample-service-provider-blueprint/README.md
new file mode 100644
index 0000000..07194df
--- /dev/null
+++ b/karaf-boot-samples/karaf-boot-sample-service-provider-blueprint/README.md
@@ -0,0 +1,26 @@
+== karaf-boot-sample-service-provider-blueprint ==
+
+This sample exposes an OSGi service using blueprint.
+
+= Design
+
+The service "contract" is describe by the Hello interface. It's a very simple service that
expose one operation (hello).
+The service client send a message (String) to the hello service and he gets a response.
+
+The HelloServiceImpl is very simple: it prefixes the message with "Hello".
+
+We use a blueprint XML descriptor (for blueprint annotations, see the corresponding sample)
in order to expose the service.
+
+= Build
+
+To build, simply do:
+
+  mvn clean install
+
+= Deploy
+
+* you can drop the generated jar file (target/karaf-boot-sample-service-provider-blueprint-1.0.jar)
in the
+Karaf deploy folder
+* in the Karaf shell console, do:
+
+  bundle:install -s mvn:org.apache.karaf.boot/karaf-boot-sample-service-provider-blueprint/1.0

http://git-wip-us.apache.org/repos/asf/karaf-boot/blob/d68761ca/karaf-boot-samples/karaf-boot-sample-service-provider-blueprint/pom.xml
----------------------------------------------------------------------
diff --git a/karaf-boot-samples/karaf-boot-sample-service-provider-blueprint/pom.xml b/karaf-boot-samples/karaf-boot-sample-service-provider-blueprint/pom.xml
index 4f0d59b..a9bfaac 100644
--- a/karaf-boot-samples/karaf-boot-sample-service-provider-blueprint/pom.xml
+++ b/karaf-boot-samples/karaf-boot-sample-service-provider-blueprint/pom.xml
@@ -27,11 +27,10 @@
     <artifactId>karaf-boot-sample-service-provider-blueprint</artifactId>
     <version>1.0.0-SNAPSHOT</version>
 
-    <!-- TODO  Change DS to blueprint-->
     <dependencies>
         <dependency>
             <groupId>org.apache.karaf.boot</groupId>
-            <artifactId>karaf-boot-starter-ds</artifactId>
+            <artifactId>karaf-boot-starter</artifactId>
             <version>${project.version}</version>
         </dependency>
     </dependencies>
@@ -47,4 +46,4 @@
         </plugins>
     </build>
 
-</project>
\ No newline at end of file
+</project>


Mime
View raw message