JBoss.orgCommunity Documentation

Chapter 4. Framework Integration

JBoss OSGi provides integration for the JBoss Microcontainer based OSGi Framework. When deployed in JBossAS this Framework will eventually allow us to integrate with components from other programming models. (i.e. OSGi services can access MC beans, EJB3 can access OSGi services and vice versa)

JBossMC integration can be configured through an XML beans configuration in the JBoss OSGi Runtime.



cat server/default/conf/jboss-osgi-bootstrap.xml 

<deployment xmlns="urn:jboss:bean-deployer:2.0">

  <!-- The OSGiFramework -->
  <bean name="OSGiBundleManager" class="org.jboss.osgi.framework.bundle.OSGiBundleManager">
  <property name="properties">
    ...
  </property>
  </bean>
...
</deployment>
    

In the JBossAS integration we also use JBoss Microcontainer beans configuration.