Alan DW
2014-05-11 18:39:06 UTC
Hello everyone,
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
scripting language.
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...
1) Is the above scenario possible with JRuby or am I using the wrong
tool?
2) 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!
Alan
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
scripting language.
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...
1) Is the above scenario possible with JRuby or am I using the wrong
tool?
2) 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!
Alan
--
Posted via http://www.ruby-forum.com/.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Posted via http://www.ruby-forum.com/.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email