Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2290

Add OSGi bundle information and bundle classloader / activator

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.2.8-SNAPSHOT
    • 2.0.5
    • General
    • None
    • OSGi (Equinox, Apache Felix, ...)

    Description

      The provided patch will add OSGi information to bundle manifest. A bundle activator class makes the MyFaces framework aware that it is running in a bundle environment. A bundle classloader is used to load classes and resources from the bundle classpath. The patch doesn't require any new runtime dependencies and doesn't affect class loading in a non-OSGi environment. Though, small modifications to classloading were needed. This was mainly replacing Thread.currentThread.getContextClassLoader() with ClassUtils methods.

      To run MyFaces in an OSGi environment both bundles (myfaces-api and myfaces-impl) have to be started in the OSGi container. Additionally, the myfaces-impl bundle has to be made available to myfaces-api. Use a fragment bundle with myfaces-api as Fragment-Host and myfaces-impl as Required-Bundle.

      Attachments

        1. myfaces-test-helloworld-osgi-springdm.zip
          13 kB
          Leonardo Uribe
        2. myfaces-test-helloworld-osgi-pax-web.zip
          32 kB
          Leonardo Uribe
        3. myfaces-shared.diff.txt
          13 kB
          Felix Röthenbacher
        4. myfaces-core.diff.txt
          24 kB
          Felix Röthenbacher
        5. MYFACES-2290-no-activator-2.patch
          6 kB
          Leonardo Uribe
        6. MYFACES-2290-no-activator.patch
          6 kB
          Leonardo Uribe
        7. allow-ee6-versioned-apis.diff
          2 kB
          David Jencks

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              froethenbacher@apache.org Felix Röthenbacher
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: