2 Replies Latest reply on Sep 19, 2011 10:29 PM by thomas.diesler

    Embedding Karaf ssh console in jboss osgi...

    salahzar

      Does anyone succeed in embedding Karaf ecosystem, at least with console capabilities and ssh access with JBossOsgi framework?

       

      Theoretically it should work naturally since Karaf is built on the top of felix and gogo and this seems the same for JBoss Osgi.

       

      I've tried but got stuck because Karaf is using some special dependencies which is not easy to untangle, but I myself am relatively newbie in osgi. So maybe there is just a correct sequence of bundles to deploy in JBOSS Osgi to have it alive. My concern is to find out these bundles and understand if they might conflict with JBossOsgi. (I've read a similar "inception" made with Eclipse Virgo WebServer / Equinox  here: http://eclipsedriven.blogspot.com/2011/06/how-to-create-felix-gogo-commands-with.html)

       

      What I liked most in Karaf integration is to be able to have a dashboard via ssh (not web oriented) much more powerful that plain gogo (Karaf btw is based on gogo) and easily scriptable and extendable. Moreover I already have built some content on another OSGI container (service mix) using Karaf console as GUI for controlling my bundles and wanted to keep the work since it appears I have to use JBoss to deploy. What I was using beyond Karaf console are blueprint injection (I see it is in JBossOsgi) and configadmin, but ssh console seems probably the most difficult part since it is using ssh and possibly needs some adapters to fully integrate with the container...