Deploy using the JVM’s high performance while building your apps in the language you love. JRuby is a fast, scalable, and powerful JVM language with all the benefits of a traditional Ruby environment. See how to consolidate the many moving parts of an MRI-based Ruby deployment onto a single JVM process. You’ll learn how to port a Rails application to JRuby, get it into production, and keep it running.
This books is unique, because the author (Joe Kutner) did really great work collecting several JRuby on Rails deploying approaches in one book. It's very convenience if you need some sort of review in scope of this subject.
I believe that any Rails developer which think that Java/JVM is enemy camp should read it. The tools which are highlighted in this book are very interesting and provide for Ruby/Rails developers broader space.
As for Java developers it's a good start point for integration Rails in corporate Java environment. The reader get all required info to get started.
Here is a list of tools: Warbler (https://github.com/jruby/warbler) - Warbler provides a minimal, flexible, Ruby-like way to bundle up all of your application files for deployment to a Java environment Trinidad (https://github.com/trinidad/trinidad) - Trinidad allows you to run Rails or Rack applications within an embedded Apache Tomcat container. Kirk (https://github.com/strobecorp/kirk) - Kirk is a wrapper around Jetty that hides all of the insanity and wraps your Rack application in a loving embrace Torquebox (http://torquebox.org) - TorqueBox is a new kind of Ruby application platform that supports popular technologies such as Ruby on Rails and Sinatra, while extending the footprint of Ruby applications to include built-in support for services such as messaging, scheduling, caching, and daemons. jetpack (https://github.com/square/jetpack), it wasn't mentioned in book. It packages your JRuby webapp for Jetty. I must admit that the most impressive is Torquebox. It's very powerful and it uses all power of JBoss App Server: TorqueBox provides an all-in-one environment, built upon the latest JBoss AS Java application server and JRuby. Such features as messaging, long running jobs, scheduled jobs are provided out of the box, have nice API which easy to use. Have a try.
A good place to start for understanding what you need to do to get your Ruby app deployed and running under JRuby on the JVM. Multiple options are considered from simple through to "enterprise-grade".
A couple of things I don't entirely agree with are that using warbler and a WAR file are not a good production choice (the author continuously promotes the heaviest all-in-one app server solution as the best and most powerful one despite a trend towards simpler, lighter weight options - e.g. microservices. Also, you can run background jobs perfectly well with the WAR solution with something like Sidekiq without having to run these under MRI Ruby - the book infers otherwise.
Overall, its a good practical read which touches on some broader topics like CI, automated deployments, dev environments with vagrant, and JVM-centric profiling and management tools.
The author touches most of the pieces of the puzzle around deploying with JRuby, as well as some pieces that aren't strictly related (such as how to use Docker, Rancher, Heroku, and others) but which help build out a pretty full-featured demo of a SOA with JRuby running services in multiple roles. I personally wish he'd dived deeper into some of the subject areas (alternate web servers like Jetty and async frameworks like async_sinatra or Ratpack), but this does cover a lot of territory. This is another book I wish I had read a while ago, before we fought with some parts of it.