RubyOnRails A Taste of Honey(for the enterprise)
JRuby guys
JRuby 101
Ruby for JVM
alternative language impl.
helping the world better understading Ruby
not
pllute or fork Ruby
admission that Java sucks
every problem
alter Ruby add incompatible
slow
But Is's Java Too
include Java
import java.lang.ArrayList
list = ArrayList.new
list.each {|f| f.set_size(200,200) }
include RubyGems Rake Rspec
mongrel support
rails works
unicode
RUby's thread API
thread pooling
pain point for Rails?
basic
gems
commang-line
basic server
different
db support
pure mysql
faster & easy jdbc
JNDI for connection pooling
mysql 100% support
oracle 지원도 노력중 금방 될 것?
diff #2
No Native Extension (C Based)
But port avaliable ex.mongrel
mongrel, hpricot, db support
rmagic in progress
diff3 -> Commandline perf.
java slow (x) except startup
don't expect stellar CLI perf.
Full demo!
jruby -S gem install rails -y
if RUBY_PLATFORM =~ /java/
데모가 지루하다. Rails 개발과 똑같기 때문에!
goldspike plugin
jruby -S rake war:standalone:create
glassfish에 잘 deploy되는 모습
glassfish-java.gem
mongrel처럼 glassfish를 사용할 수 있다.
Migration can be done
Native Extension
equivalent java lib
port
wrap
deployment option
mongrel not 추천
war file -> JMS Persistence, Transaction, Scales great
Grizzly/GlashFish v3
Java Lib from Rails
Rome Java Feed 라이브러리를 쓰는 Demo