How to embed new scripting languages into 1.6

I like the new API in java 1.6 for handling scripting. However, the latest version is not shipped with groovy, which is my favorite scripting language at the moment. Does anyone know how to add support for new scripting languages so that they can be accessible through javax.script?

Thanks in advance

I found a nice article that cover this issue: “Build your own scripting language for Java” (http://www.javaworld.com/javaworld/jw-04-2006/jw-0424-scripting.html).

Additional, it seems that among the most ‘popular’ scripting langauges only Rhino and Pnuts have implemented JSR 223 so fare.

A Beanshell implementation of the javax.script package is also available meanwhile. However, the src and binaries of the latest version are not linked on the homepage yet . Fortunatley, I’ve found those links in the mailing list archive:

http://www.beanshell.org/bsh-2.0b5.jar
http://www.beanshell.org/bsh-2.0b5-src.zip

AFAIK there is also a php binding available, but none for Groovy, Ruby or Python which I’d highly appreciate…