Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3481

camel-script doesn't work in OSGi

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.8.0
    • Component/s: camel-script
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      In an OSGi environment, the ScriptEngineManager that ScriptBuilder uses can't find any scripting engines except the ones packaged in the JDK (Rhino, maybe AppleScript, etc.). It's possible that setting a better ClassLoader would work, or perhaps using a singleton ScriptEngineManager and setting up the scripting engines in an OSGi Activator instead of relying on the META-INF lookup every time a script is invoked.

        Attachments

        1. camel-script.patch
          4 kB
          Aaron Mulder
        2. camel-core.patch
          6 kB
          Aaron Mulder

          Issue Links

            Activity

              People

              • Assignee:
                njiang Willem Jiang
                Reporter:
                ammulder Aaron Mulder
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: