Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-911

Add shared-library bundles to JBI component bundle classloader

    XMLWordPrintableJSON

Description

    In a plain JBI scenario, every JBI component has the JBI shared library as its parent classloader. When we add the JBI components in ServiceMix 4, we're not using JBI packaging but we deploy them as OSGI bundles instead. Currently, these OSGi bundles only import the packages they need from the shared library bundles, but this sometimes causes problems when people move existing SAs from ServiceMix 3 to ServiceMix 4.

    If we add the shared-library bundles as {{Required-Bundle}}s to the JBI components, the classes available in the component would be a lot more similar than what we have in ServiceMix 3. Required-Bundle is not usually recommended in OSGi as it is too course-grained, but in this case there shouldn't be a real problem as we don't support multiple versions of the same JBI component anyway and the goal is to simulate the JBI classloader behavior.

    Attachments

      Activity

        People

          gertvanthienen Gert Vanthienen
          gertvanthienen Gert Vanthienen
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: