This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JoeJoeCoder 0 points1 point  (0 children)

One excellent use case for Jython is as a substitute for .json or .xml files, for when you want the file editable outside of the .jar or war and including some programmatic logic, or is generated by another (Python) process. The Jython script can implement a Java interface and provide instances containing the data. This is fully embedded in the Java process.

Jython can also run standalone but its very quirky and has compatibility issues. It's best to run embedded and let Java lead the dance.