From: Post Tudbc Date: 2008-12-04T07:17:04+09:00 Subject: Re: Ruby and legacy Java Applications Joe Wę—¦lfel wrote: > What are some good ways to integrate Ruby into legacy Java > applications? I realize > I can execute small Ruby scripts from Java like this: > > Ruby runtime = Ruby.newInstance(); > runtime.evalScriptlet("puts 'Hello from Ruby'"); > > However, this seems to lend itself only to small snippets of Ruby. > Often I'm more likely > to have a larger body of Ruby code that includes many files, gem > dependencies, and > the ability to work with legacy installers. Is there an easy way to > accomplish this? Try the free tool TudbcJRubyServlet http://www.tudbc.org/tudbcjrubyservlet which allows you to use JRuby (which is compatible with Ruby 1.8.6) in a Java EE (such as GlassFish, Resin, Tomcat, etc), which automatically will allow you to use your Java codes. -- Posted via http://www.ruby-forum.com/.