Oracle Mix, Powered by JRuby on Rails
November 30th, 2007
Oracle AppsLab Blog
"Mix is Live"
http://tinyurl.com/2hcp8p
An announcement of the Mix application we built in partnership with
Oracle. In case you had forgotten, we have a logo/link at the bottom of
every page of the application -- there for Oracle's 300,000 customers
to see. By the end of the recent Oracle OpenWorld conference, the Mix
had over 1,500 signups.
Oracle AppsLab Blog
"Let's Mix"
http://tinyurl.com/26fal3
The Mix application built in less than 5 weeks "with the
help of the wonderful people at ThoughtWorks." Mike Royle, Toby Tripp,
Matthew Wastrodowski and Sid Pinney were all part of this relationship.
InfoQ
Oracle Mix: First large JRuby on Rails app online
http://tinyurl.com/yqjzqb
ThoughtWorks, JRuby and Ola mentioned in excerpts
Oracle AppsLab Blog
Mix, JRuby on Rails, Small Teams, Agile, and it’s Effects on the World
http://tinyurl.com/26fg5p
A good post about JRuby and its role in the Mix development. Ola Bini and ThoughtWorks are mentioned.
JRuby on Rails: A Tale of Two Worlds
November 23rd, 2007
Jini说脚本语言唯Java马首是瞻,Alexey(在一个邮件里)说Ruby就是新时代的COBOL。两种说法的意思是一样的:在Java平台上跑Ruby程序,同时收获两个世界最好的东西。
Oracle已经尝试了。Oracle Mix是一个社会网络站点,也是第一个大型的JRuby on Rails的应用。效率?效率真的不错。Oracle的同志说,Mix每秒能处理400~600个请求。比较不理想的是内存使用情况,这里有一个已知的问题存在。不过在Oracle那样的强大服务器上,这个已经不成问题,于是也没有人去动它。
更好的想象来自Hibernate。ActiveRecord的不足是显而易见的,但用Ruby重新实现一个Hibernate不是件很轻松的事,特别是考虑到Hibernate支持那么多数据库。那么,Hibernate加一个Convention over Configuration的Ruby API又如何呢?把Hibernate融入Rails又如何呢?Alexey正在着手做一些东西。
近在眼前的,JRuby on Rails感觉上更像是一个Java的框架,而不是另一个平台,这让它更容易被比较保守的企业和政府客户接受,特别是那些已经在J2EE服务器上投入了大量成本的客户。现在好了,你的投资重新焕发青春,开发效率提升5倍。谁会不喜欢呢?
JRubyWorks: J2EE on Rails
August 18th, 2007
(NOTE: JRubyWorks keeps moving forward and this article may not be up to date.)
How to run your Rails application with J2EE web servers (such as Jetty and Tomcat)? Here’s a solution:
1. Set JRUBY_HOME environment variable properly.
export JRUBY_HOME=/usr/lib/jruby
2. Install ActiveRecord-JDBC.
jruby -S gem install ActiveRecord-JDBC -y
3. Install JRubyWorks plugin.
script/plugin install \ http://jrubyworks.rubyforge.org/svn/trunk/jrubyworks/
4. Configure your Rails application as this article. JRubyWorks plugin includes mysql-connector by default. If you use database other than MySQL, you can put corresponding JDBC driver in ${RAILS_ROOT}/lib/java directory and JRubyWorks will take care of it conventionally.
5. Run your application and try it at http://localhost:8080. Also you can find a WAR file of your application in ${RAILS_ROOT}/war directory. You can deploy it to other J2EE web servers.
jruby -S rake retty
JRubyWorks is based on JRuby Rails Integration and hope to make the integration easier. It’s quite immature so far, apparently. Your feedback and contribution will be very helpful and highly appreciated.



