Hi
The other way round: call Java from within MRI would also be interesting.
How to avoid starting the Java-engine for every call? => run an app
containing the library and then call the functions only with two processes.
Are there other/better possibilities?
Bye Berg
···
Am 26.08.2016 17:43 schrieb "Ruby Student" <ruby.student@gmail.com>:
Hello Team,
I was wondering, and I did some unsuccessful search if I can do the
following:
From a Java class, invoke a Ruby (MRI) script and get any results produced
by the Ruby script back in the calling Java class.
Robert Thank you.
I actually want to use Rubywmq, which is my understanding that it runs only
on MRI Ruby.
Thanks again
···
On Fri, Aug 26, 2016 at 11:57 AM, Robert Klemme <shortcutter@googlemail.com> wrote:
On Fri, Aug 26, 2016 at 5:43 PM, Ruby Student <ruby.student@gmail.com> > wrote:
> I was wondering, and I did some unsuccessful search if I can do the
> following:
>
> From a Java class, invoke a Ruby (MRI) script and get any results
produced
> by the Ruby script back in the calling Java class.
Whatever you mean by "result" - exit code, output to stdout, output to
stderr...
You do it as for any external process in Java. For Java questions
there are better forums.
You could also consider to make use of JRuby - then you do not even
have to start a separate process...