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

camel-script doesn't work in OSGi

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.8.0
    • camel-script
    • None
    • 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-core.patch
          6 kB
          Aaron Mulder
        2. camel-script.patch
          4 kB
          Aaron Mulder

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: