4 Replies Latest reply on Mar 29, 2011 10:59 AM by developer333

    OSGi support in JBoss AS 7

    developer333

      Dear JBoss users,

      I'm very much interested to adopt OSGi in a set of new projects - To get started I've found this very useful post here: http://jbossosgi.blogspot.com/2009/03/jbossosgi-getting-started.html this suggested me two questions- hope somebody can shed some light on it:

       

      1. In the article is mentioned how to upgrade existing 5.1 and 6.0 release. This means that AS7 will have full OSGi support (including Felix Web console and Hudson QA Environment) ?

      2. How could we update the AS 7 module repository ? using a maven repository ? (Adding manually the files in the modules folder could bring back again classpath hell :-))

      Thanks a lot

      Paul

        • 1. OSGi support in JBoss AS 7
          developer333

          sorry maybe question two was a bit misleading: I was meaning if you could update AS 7 distribution modules using Maven - or better- Felix Web console. This way updating AS7 would be just like updating your Eclipse distribution (wow!).

          Thanks

          Paul

          • 2. Re: OSGi support in JBoss AS 7
            bosschaert

            Hi Paul,

            paul brocelli wrote:

             

            1. In the article is mentioned how to upgrade existing 5.1 and 6.0 release. This means that AS7 will have full OSGi support (including Felix Web console and Hudson QA Environment) ?

            OSGi support has been available in JBoss AS7 since Alpha1. AS7 Beta 2 will be released soon and that version passes all OSGi Core TCK tests except for 2 corner cases that we're still working on, so OSGi 4.2 Core support is virtually there for Beta2.

             

            What you get when you download AS7 is an application server that allows the deployment of OSGi bundles. Additional services, such as the Felix Web console can be easily installed on top of AS7 using the JBoss OSGi installer. We're currently working on a release of that which works with Beta 2 as well. However, if you are in a hurry, you should be able to simply take the Felix Web Console as-is and install that yourself.

            Yes, AS7 OSGi support is tested automatically via Hudson here: http://jbmuc.dyndns.org:8280/hudson

            2. How could we update the AS 7 module repository ? using a maven repository ? (Adding manually the files in the modules folder could bring back again classpath hell :-))

            You can deploy OSGi bundles in AS7 using its deployment framework. This normally doesn't mean that you need to update the AS7 module repository. You can drop bundles in the deployments folder, specify auto-install/auto-start bundles in the configuration.xml file, us JMX to deploy bundles (see: http://www.osgi.org/javadoc/r4v42/org/osgi/jmx/framework/FrameworkMBean.html ) or use the Web Console you mentioned to do the deployment. You can also use any of these APIs to update your bundles.

             

            The following postings may be useful to you:

            • 3. OSGi support in JBoss AS 7
              bosschaert

              Hi Paul,

              paul brocelli wrote:

               

              sorry maybe question two was a bit misleading: I was meaning if you could update AS 7 distribution modules using Maven - or better- Felix Web console. This way updating AS7 would be just like updating your Eclipse distribution (wow!).

              Thanks

              Paul

               

              The standard patching mechanism for AS7 is being worked on in the context of https://issues.jboss.org/browse/ANDIAMO-13

               

              Best regards,

               

              David

              1 of 1 people found this helpful
              • 4. OSGi support in JBoss AS 7
                developer333

                Thank you very much for sharing useful info David

                Best regards

                Paul