Hello, I'm trying to grasp my mind on DOSGi; I want to have a general idea on the main concepts before start coding.
A while ago I tried (with success) to replicate the awesome tutorial Christian provided (available https://github.com/apache/cxf-dosgi/tree/master/samples/rest). Now, before continuing coding, I want to understand why DOSGi is useful in my use case. Briefly, I want to code with Declarative Services with Karaf because i feel it's a more OSGi oriented way to define and bind services. Furthermore, I want my OSGi framework to recreate a web page the user can interact with: CXF can easily be deployed in Karaf, so I felt like it was a good choice over the other alternatives (like jetty). I used RESTful services as well, just to have something well structured. In a previous question, Christian suggested me to use DOSGi to fullly implement this scenario. After the successful attempt, I read the following resources on the topic. 1) http://cxf.apache.org/distributed-osgi-reference.html; 2) https://github.com/apache/cxf-dosgi; http://www.liquid-reality.de/display/liquid/2013/02/13/Apache+Karaf+Tutorial+Part+8+-+Distributed+OSGi ; Especially from the last one: It seems that DOSGi is used to let an OSGi framework B access to services located on a OSGi framework A. This is all good and dandy but in my scenario (Karaf + CXF exposing a REST service) where are the 2 OSGI containers? I can see only one, namely the one on my laptop in localhost! I'm sure I'm missing something, probably for my inexperience. Can someone solves this question of mine? Thanks! -- *Ing. Massimo Bono*
