JSR-223 vs JSR-241 - Scripting Language

What is the main difference between JSR-223 and JSR-241 ?

If I understood correctly:

  • JSR-223: introduces a scripting language in Java, that's all! You can use any scripting language, for example: Groovy, Mozilla Rhino, PHP, Jython, Python, etc. By default, J2EE supports JavaScript as a scripting engine, but you can add any scripting language that you like. So it was just connecting classes written in Java with a piece of code written in a scripting language (or vice versa). The only advantage of this integration that I have seen is the simplicity offered by the scripting language when writing a program compared to writing the same program in Java.

  • JSR 241: This is a JSR-223 extension and underscore when adopting Groovy as a scripting language, i.e. if you plan to use the scripting language in your Java application (Web or Dekstop applications), use Groovy .. leave the others, because Groovy is more like Java, and other scripting languages ​​like Jython, Python, JavaScript, etc., were adopted and modified in accordance with Java, but the natural choice is Groovy.

Could you tell us a little more about this, and do I understand correctly?

+7
source share
1 answer

JSR 241 is not an extension of JSR 223, and it does not “emphasize the adoption of“ w30>. ”Instead, the emphasis is on making Groovy (ie, its syntax and semantics) the official Java standard.

The only thing related to JSR 223 is what he mentioned in 2.6 to find out why the proposal is not yet covered by JSR 223:

+5
source

All Articles