Camel
  1. Camel
  2. CAMEL-926

ScriptBuilder hasn't DSL for beanShell

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.5.0
    • Component/s: camel-script
    • Labels:
      None

      Description

      The ScriptBuilder has nice DSL for all the supported languages except BeanShell. We might as well add the DSL for it.

      Isn't beanshell a included script language in Java6? Or I am mistaking?

      1. bsh-2.0b5.jar
        375 kB
        Claus Ibsen

        Activity

        Hide
        Claus Ibsen added a comment -

        need to add use b5 of beanshell

        <groupId>org.beanshell</groupId>
        <artifactId>bsh</artifactId>
        <version>2.0b5</version>

        This is the one that is supported by SUN
        https://scripting.dev.java.net/

        However the bsh-engine
        <groupId>com.sun.script</groupId>
        <artifactId>bsh-engine</artifactId>
        <version>20080611</version>

        doens't support beanshell scripts on java5 yet.

        java.lang.Error: unimplemented
        at bsh.engine.BshScriptEngine.compile(BshScriptEngine.java:175)
        at bsh.engine.BshScriptEngine.compile(BshScriptEngine.java:154)
        at org.apache.camel.builder.script.ScriptBuilder.compileScript(ScriptBuilder.java:515)
        at org.apache.camel.builder.script.ScriptBuilder.checkInitialised(ScriptBuilder.java:493)
        at org.apache.camel.builder.script.ScriptBuilder.getEngine(ScriptBuilder.java:421)

        Show
        Claus Ibsen added a comment - need to add use b5 of beanshell <groupId>org.beanshell</groupId> <artifactId>bsh</artifactId> <version>2.0b5</version> This is the one that is supported by SUN https://scripting.dev.java.net/ However the bsh-engine <groupId>com.sun.script</groupId> <artifactId>bsh-engine</artifactId> <version>20080611</version> doens't support beanshell scripts on java5 yet. java.lang.Error: unimplemented at bsh.engine.BshScriptEngine.compile(BshScriptEngine.java:175) at bsh.engine.BshScriptEngine.compile(BshScriptEngine.java:154) at org.apache.camel.builder.script.ScriptBuilder.compileScript(ScriptBuilder.java:515) at org.apache.camel.builder.script.ScriptBuilder.checkInitialised(ScriptBuilder.java:493) at org.apache.camel.builder.script.ScriptBuilder.getEngine(ScriptBuilder.java:421)
        Hide
        Claus Ibsen added a comment -

        bsh v2.0b5

        Show
        Claus Ibsen added a comment - bsh v2.0b5
        Hide
        Claus Ibsen added a comment -

        Added beanShell as Expression as well so we can use it just as all the other languages.

        Show
        Claus Ibsen added a comment - Added beanShell as Expression as well so we can use it just as all the other languages.
        Hide
        Claus Ibsen added a comment -

        Upgraded to bsh 2.0b5. Gert was so kind to add it to the servicemix repo

        Show
        Claus Ibsen added a comment - Upgraded to bsh 2.0b5. Gert was so kind to add it to the servicemix repo
        Hide
        Claus Ibsen added a comment -

        Closing 1.5 issues

        Show
        Claus Ibsen added a comment - Closing 1.5 issues

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development