You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Scope

Versions of Java scripting languages and JobScheduler releases

  • Use of Colors
    • a green background color signals a recommended scripting language.
    • a yellow background color signals deprecation or restricted use.
    • a red background color signals outdated or unsupported scripting languages.

 

No.SyntaxJava ReleaseJobScheduler ReleaseComments
1<script language="javascript"/>
  • Java independent, C++ implementation of the SpiderMonkey project
  • Available for 32-bit JobScheduler Releases
  • Not available for 64-bit JobScheduler Releases
  • JS-1306 - Getting issue details... STATUS
  • syntax for JobScheduler API is the same as for no. 2

 

2<script language="java:javascript"/>
  • available starting from Java version 1.7
  • maps to the Rhino Scripting Engine when using Java 1.7
  • maps to the Nashorn Scripting Engine when using Java 1.8
  • starting from JobScheduler release 1.5
  • syntax for JobScheduler API is the same a for no. 1, <script language="javascript"/>
  • for compatibility to move Javascript jobs on 32Bit JobScheduler (using spidermonkey) to a 64Bit JobScheduler with minimal changes (only script language attribute)
  • Uses Java Beans Layer on Rhino/Nashorn Scripting Engine
3<script language="javax.script:javascript/>
  • Java Version 1.7, 1.8
  • maps to the Rhino Scripting Engine when using Java 1.7
  • maps to the Nashorn Scripting Engine when using Java 1.8
  • syntax for JobScheduler API is the same as for no. 4 and 5
4<script language="javax.script.rhino"/>
  • Java 1.7
  • removed with Java 1.8
  • starting from JobScheduler release 1.5
  • syntax for JobScheduler API is the same as for no. 3 and 5
5<script language="javax.script:ECMAscript"/>
  • Java 1.7, 1.8
  • starting from JobScheduler Release 1.5
  • maps to the Rhino Scripting Engine when using Java 1.7
  • maps to the Nashorn Scripting Engine when using Java 1.8
  • syntax for JobScheduler API is the same as for no. 3 and 4

 

  1. <script language="javascript"/>
    • Java Version
      • Java independent, C++ implementation of the SpiderMonkey project
    • JobScheduler Release
      • Available for 32-bit JobScheduler Releases
      • Not available for 64-bit JobScheduler Releases
  2. <script language="java:javascript"/>
    • Hints
      • Syntax for JobScheduler API is the same a for <script language="javascript"/>
      • For compatibility to move javascript jobs on 32Bit JobScheduler (using spidermonkey) to a 64Bit JobScheduler with minimal changes (only script language attribute)
      • Implemented Java Beans Layer on rhino/nashorn engine
    • Java Version
      • available starting from Java version 1.7
      • maps to the Rhino Scripting Engine when using Java 1.7
      • maps to the Nashorn Scripting Engine when using Java 1.8
    • JobScheduler Release
      • starting from JobScheduler release 1.5
  3. <script language="javax.script:javascript/>
  4. <script language="javax.script.rhino"/>
    • Java Version
      • Java 1.7 (previous versions?)
      • removed with Java 1.8
    • JobScheduler Release
      • starting from JobScheduler release 1.5
  5. <script language="javax.script:ECMAscript"/>
    • Hints
      • maps to the Rhino Scripting Engine when using Java 1.7
      • maps to the Nashorn Scripting Engine when using Java 1.8
    • Java Version
      • Java 1.7, 1.8
    • JobScheduler Release
      • starting from JobScheduler Release 1.5

Explanations

  • API syntax is for 1 & 2 the same
  • API syntax is for 3 & 4 & 5 the same

Recommendations

<script language="javax.script:javascript/>

Use the available javascript engine of the JRE.

See also

 

  • No labels