JRuby on Rails with Nine Lives: Running a JRuby on Rails Application on Tomcat
Click here for a larger image.
Figure 27: Deleting an existing guitar
Click here for a larger image.
Figure 28: Deletion of existing guitar successful
Conclusion
In this article, you used JRuby to create a simple CRUD-based Rails application to manage a list of guitars (similar to the one in my "Skip the CRUD" article) and you successfully ran it on the Java-based Tomcat application server. This demonstrated JRuby's improved support for Rails applications by using database access via JDBC and the ability to run Rails applications on a Java application server!
References
- Ubuntu Linux: http://www.ubuntu.com/
- Apache Tomcat: http://tomcat.apache.org/
- MySQL: http://www.mysql.com/
- Ruby: http://www.ruby-lang.org/en/
- Java: http://java.sun.com/
- JRuby: http://jruby.codehaus.org/
- Ruby on Rails: http://www.rubyonrails.org/
- Goldspike Rails Integration Plugin: http://www.headius.com/jrubywiki/index.php/Rails_Integration
- Rails Migrations: http://wiki.rubyonrails.org/rails/pages/UsingMigrations
- SilvaSoft, Inc. weblog: http://jroller.com/page/silvasoftinc
About the Author
Dominic Da Silva (http://www.dominicdasilva.com/) is the President of SilvaSoft, Inc., a software consulting company specializing in Java- and Ruby-based web and web services development. He has worked with Java since the year 2000 and is a Linux user from the 1.0 days. He is also Sun Certified for the Java 2 platform. Born on the beautiful Caribbean island of Trinidad and Tobago, he now makes his home in sunny Orlando, Florida.



Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.