Hi there,
I use evalScriptlet to call a long-running ruby script, How can I stop
it from Java code? Thanks in advance.
public static Ruby runtime;
static { # initialize org.jruby.Ruby runtime
RubyInstanceConfig config = new RubyInstanceConfig();
Ruby runtime = JavaEmbedUtils.initialize(new ArrayList(0), config);
}
Inside a Java thread, eval a ruby script
runtime.evalScriptlet(“load '” + ruby_file + “’”); # long running