First install the prerequisites and required gems as described in this post.
Create a file called config.ru with the following content
run lambda { |env| [ 200, { 'Content-Type'=>'text/plain' }, "Hello World!\n" ] }
Then run warbler like this:
jruby -S warble... and deploy the resulting war file to tomcat. DONE!
Oh! And in case you were wondering: the performance of this application is just incredible! On a virtual machine with 2 cores at 2.19GHz each and 512MB RAM (Dell D830 laptop) it delivers around 2000 requests per second!
Ruby rocks!
1 comment:
Post a Comment