JRuby on Jelastic
Using JRuby you can access any Java library meaning that you can benefit from a very mature and vast Java ecosystem – many immature Ruby libraries already have well established Java equivalents which can offer you more performance, stability, features, or just an alternative option.
One of the main benefits often stated in favour of JRuby is performance, since running on the JVM means you get multi-threaded concurrency. This is a double-edged-sword however since it also exposes more potential problems: if your locking is incorrect, your code is likely to break.
How to Deploy JRuby applications to Jelastic
First install the JVM and JRuby locally on your own computer.
When you’re ready to deploy, install the warbler gem and use it to build a WAR file from your project. It’s a simple as this:
-bash-4.1$ warble war
This process should work for any Rails, Merb, or Rack-based application. Please refer to the Warbler docs for more details.
Once you have your WAR file, it can be deployed to any Java application server on Jelastic by upload to the deployment manager in the dashboard.
Need More Help?
If you're still having problems, get in touch with our 24/7 support team! We'll be more than happy to help.