4 Replies Latest reply on May 30, 2012 6:27 AM by rssole

    JBoss modules and OSGi bundles - and relations between them

    rssole

      Hi everyone,
      I've been trying out some things with JBoss 7.1.0-Final (standalone config).


      At first, I've managed to import log4j packages into bundle through modules.extra property setting.
      That worked quite fine.

       

      Now I'm trying to achieve similar thing but this time by making quartz scheduler to be module
      within JBoss instance (standalone) and exposing it to bundle.
      Or better to say - to import package from quartz scheduler into bundle by making it JBoss module.

       

      That doesn't work

       

      The question is, is this possible at all... to take some lib (like mentioned quartz), make it module
      and then import it's packages into some bundle, like I said I've managed to achieve that with log4j?

       

      Ok, I do know that by spec/theory osgi bundle should be able only to import packages of another bundle,
      and that maybe success with log4j is because it is pre-loaded into some bundle.

       

      I am still learning about JBoss' modules and bundles conception and possibilities of integration, like
      errr if and how JBoss can make module available to osgi bundle.

       

      I've been surfing through JBoss documentation but haven't found so far some detailed
      info on this topic, I mean e.g. correct steps to make some lib to be module on JBoss (if that is possible at all).
      I've simply followed convention of existing modules as I couldn't locate proper documentation page... who knows
      maybe I did but didn't recognize it as such

       

      Perhaps someone has some doc link or tip/info/suggestion and so shed some light onto topic?
      Anything is welcome and appreciated.

       

      Many thanks,
      R