You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when starting from my java code a jruby application (like logstash) via instantiating org.jruby.Main and call run(....), I'm missing the part stop(). Is there a clean way to stop the "Main", to, for example, redeploy the enclosing application trouble-free (terminating jruby child thread and so on)?
Thanks, Torsten!
The text was updated successfully, but these errors were encountered:
No applications should be using Main to launch JRuby instances, unless they're actually running JRuby as the only application on that JVM. Running through Main only does teardown on completion and does JVM-damaging things like taking over stdio and doing hard process exits.
If you want to have an embedded JRuby, we strongly recommend the use of ScriptingContainer. If you must go deeper with your integration, use Ruby.newInstance methods to get your own JRuby runtime. See the wiki for examples of embedding JRuby.
Hi, (sorry, no english)
when starting from my java code a jruby application (like logstash) via instantiating org.jruby.Main and call run(....), I'm missing the part stop(). Is there a clean way to stop the "Main", to, for example, redeploy the enclosing application trouble-free (terminating jruby child thread and so on)?
Thanks, Torsten!
The text was updated successfully, but these errors were encountered: