Self-contained io.grpc gRPC OSGi Bundle

I've started to create this gRPC OSGi self-contained bundle to be able to use the gRPC libraries for my next private project which I plan to do.
To build this project run:

mvn clean install

Copy your built bundle from the target folder and copy all below mentioned dependencies from maven or use the following command if you are using karaf:

bundle:install mvn:io.grpc/grpc-osgi/1.31.1

You will now be able to start a complete grpc server in a separate custom bundle. Therefore, you should define your proto file first and generate java code form it. I will provide an example on demand.
It is not a bundle which you should use in production, as I am not 100% sure whether all dependencies are resolved correctly. Please let me know if you run in any issues.

JAX-RS with Karaf

Yesterday I was able to run a simple jax-rs service on Karaf by implementing a bundle project and adding all needed dependencies manually into the Karaf deploy folder. Actually I thought it will be hard but it was simple. Anyway I was still not absolutely happy with that what I got at the end, especially with my step placing bundles into the deploy folder of Karaf. So I started to create a Karaf feature, who likes may just look into my Github karaf-playground the feature is still not complete but I will manage that soon.

Ok, that was my attemp to use jersy… Later an OSGi advocate pointed me to another tutorial which is based on CXF and I can definitely recommend that, it is absolutely complete and easy to setup.

Here you can find the Github link Karaf-REST-Example

  • start.txt
  • Last modified: 2020/03/05 21:23
  • (external edit)