1 Reply Latest reply on Dec 14, 2011 6:29 AM by bosschaert

    AS7 OSGi Bundles and Modules

    kamesh_sampath

      I did follow the Webinar JBoss AS7 OSGi, i was able to successfully build an application and deploy it.

       

      I have some queries on the same (though some of them are very basic ),

       

      1. When deploying WAR (Non OSGi) with dependencies to OSGi bundles, whether AS7 will pickup only JBoss Modules or can we provide reference to bundles  in the Manifest "Dependencies" section?
      2. When deploying OSGi bundles using maven jboss-as plugin or using jboss osgi console, where do the files get deployed ?  I dont see any jars in the deployments folder
      3. Is JBoss AS modules dynamically updateable as we do for OSGi bundles ?
      4. Does JBoss Modules can be deployed as exploded archieves ?
      5. Is it possible for a Modules/OSGi bundles to refer to a bundle that is deployed as part of another WAR ?

       

      Thanks.

       

      ~Kamesh

        • 1. Re: AS7 OSGi Bundles and Modules
          bosschaert

          Hi Kamesh,

          Kamesh Sampath wrote:

           

          I did follow the Webinar JBoss AS7 OSGi, i was able to successfully build an application and deploy it.

           

          I have some queries on the same (though some of them are very basic ),

           

          • When deploying WAR (Non OSGi) with dependencies to OSGi bundles, whether AS7 will pickup only JBoss Modules or can we provide reference to bundles  in the Manifest "Dependencies" section?

           

          Yes, you can also refer to OSGi bundles. The syntax is as follows: deployment.<bsn>:<version>

          So if you want to refer to a plugin with Bundle-SymbolicName 'my-test-bundle' and version 1.2 you'd use:

             deployment.my-test-bundle:1.2.0

           

          • When deploying OSGi bundles using maven jboss-as plugin or using jboss osgi console, where do the files get deployed ?  I dont see any jars in the deployments folder

          They end up somewhere else. In the data/osgi-store/bundle-* directories of your current storage location. If you're running in standalone mode this directory structure exists under the 'standalone' directory.

           

          • Is JBoss AS modules dynamically updateable as we do for OSGi bundles ?

          This is probably better answered by David Lloyd, but I believe JBoss Modules would require a restart after an update.

           

           

          • Does JBoss Modules can be deployed as exploded archieves ?

          Again, not totally my area of expertise, but I think this is possible.

           

          • Is it possible for a Modules/OSGi bundles to refer to a bundle that is deployed as part of another WAR ?

          A bundle that's inside a WAR? You mean in its web-inf/lib directory? In that case its not really a bundle but rather a jar file which is deployed as part of a war file so it won't have visibility outside of that WAR AFAIK...

           

          Best regards,

           

          David