I’m currently developing a Java application and I know a bit of Ruby.
I’ve stumbled across JRuby when I was looking for a lightweight
In my application, the end-user should be able to attach small scripts
at certain points in the application. On the Java side, the script
should be stored as a simple string (containing valid Ruby syntax) and
then be executed at runtime.
Now I do have some questions here…
- Is the above scenario possible with JRuby or am I using the wrong
- How does JRuby inter-operate with Java, i.e. is it capable of calling
Java methods, access the current Java call stack (i.e. local variables,
static fields), work with Java data structures / classes…? Will this
work at all?
I’ve never integrated a scripting language in any of my applications so
far, sorry if the questions sound a little “noobish”. I’m not even sure
if JRuby is the right tool for this job. I’ve read most of the contents
of the JRuby homepage, but I couldn’t find an answer to those questions.
I’d be grateful for any advice!