Drop-Dead Simple JRuby Integration

Group,

I’ve been using Java for years, and Ruby for a couple of years.

I have been looking for a way to integrate jruby into an existing
application off and on for a week, but I can’t seem to find a good
tutorial that I can grok.

Can anyone recommend something that I can add jruby on to:

  • An existing web application
    -Running on Tomcat
  • with Java 1.5

Thanks,
Joe


“There are only two industries that refer to their customers as
‘users’.” - Edward Tufte


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Fri, Jun 12, 2009 at 5:19 PM, Bothari[email protected] wrote:

-Running on Tomcat

  • with Java 1.5

You can use jruby-rack as a way to wire in Rails or other Rack-based
code into your existing web application. See the getting started
section for details:

http://kenai.com/projects/jruby-rack/pages/Home#Getting_Started

The effect of this will be to delegate to JRuby for URIs that don’t
exist, so you can easily add it along existing pages and frameworks.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Joe,
You can also add jruby to java with jsr223, it’s a scripting engine
that allows You to run fully qualified ruby scripts inside java, i
personally use it all the time in situations where java is not as
dynamic as i want.

Best greetings,
Pawel Wielgus

2009/6/13, Nick S. [email protected]:

  • An existing web application
    exist, so you can easily add it along existing pages and frameworks.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email