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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        53m 4s 1 Claus Ibsen 21/Sep/08 18:30
        Resolved Resolved Closed Closed
        31d 10h 6m 1 Claus Ibsen 23/Oct/08 04:37
        Jeff Turner made changes -
        Project Import Sat Nov 27 00:14:50 EST 2010 [ 1290834890113 ]
        Claus Ibsen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Claus Ibsen added a comment -

        Closing 1.5 issues

        Show
        Claus Ibsen added a comment - Closing 1.5 issues
        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 -

        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.
        Claus Ibsen made changes -
        Attachment bsh-2.0b5.jar [ 17012 ]
        Hide
        Claus Ibsen added a comment -

        bsh v2.0b5

        Show
        Claus Ibsen added a comment - bsh v2.0b5
        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)
        Claus Ibsen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Claus Ibsen made changes -
        Field Original Value New Value
        Assignee Claus Ibsen [ davsclaus ]
        Claus Ibsen created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development