What does it mean for something to be "NIO ( non-blocking) " Incidentally, is Apache web server, alone by itself, non-blocking?
As for Conrad's most recent comment, it sounds like one incarnation of Glassfish gem with a couple of JRuby runtimes could likely handle a fairly good amount of traffic? -Janna On Jun 4, 11:58 pm, Conrad Taylor <conra...@gmail.com> wrote: > Vivek, it's all working and the Glassfish gem is very nice indeed: > > JRuby 1.3.0RC2 > Glassfish Gem 0.9.5 > Rails 2.3.2 > > I say this because I was able to configure glassfish gem with only 2 JRuby > runtimes and I was able to serve 1681.10 pages per sec. BTW, I configured ab > as follows: > > ab -n 1000 -c 100 <my local site> > > Very nice work, > > -Conrad > > On Thu, Jun 4, 2009 at 8:05 PM, Vivek Pandey <vivek.pan...@gmail.com> wrote: > > You would need to install JDBC drivers gem for sqlite3. I see > > activerecord-jdbcsqlite3-adapter in the gem list so all you need to do is to > > use it in database.yml. Do the following: > > > Edit config/database.yml > > > replace 'sqlite3' by 'jdbcsqlite3'. > > > thanks, > > > -vivek. > > > On Thu, Jun 4, 2009 at 7:56 PM, Conrad Taylor <conra...@gmail.com> wrote: > > >> On Thu, Jun 4, 2009 at 4:48 PM, Vivek Pandey <vivek.pan...@gmail.com>wrote: > > >>> Why do you need to go WAR route? > > >>> Give glassfish gem a try: > > >>> Assuming you have JDK6 and JRuby installed > > >>> Install: > > >>> $ jruby -S gem install glassfish > > >>> To run: > > >>> $ cd your-app > >>> $ glassfish > > >>> [snip] > > >> Vivek, I have installed the following gems on Mac OS X 10.5.7: > > >> actionmailer (2.3.2) > >> actionpack (2.3.2) > >> activerecord (2.3.2) > >> activerecord-jdbc-adapter (0.9.1) > >> activerecord-jdbcmysql-adapter (0.9.1) > >> activerecord-jdbcsqlite3-adapter (0.9.1) > >> activeresource (2.3.2) > >> activesupport (2.3.2) > >> glassfish (0.9.5) > >> jdbc-mysql (5.0.4) > >> jdbc-sqlite3 (3.6.3.054) > >> jruby-openssl (0.5) > >> rack (1.0.0) > >> rails (2.3.2) > >> rake (0.8.7) > >> sources (0.0.1) > > >> Also, I have install JRuby 1.3.0RC2 and > > >> BEGIN TRANSCRIPT: > > >> darnoc-laptop:test2 conradwt$ jruby script/generate scaffold post > >> title:string description:text > >> exists app/models/ > >> exists app/controllers/ > >> exists app/helpers/ > >> create app/views/posts > >> exists app/views/layouts/ > >> exists test/functional/ > >> exists test/unit/ > >> create test/unit/helpers/ > >> exists public/stylesheets/ > >> create app/views/posts/index.html.erb > >> create app/views/posts/show.html.erb > >> create app/views/posts/new.html.erb > >> create app/views/posts/edit.html.erb > >> create app/views/layouts/posts.html.erb > >> create public/stylesheets/scaffold.css > >> create app/controllers/posts_controller.rb > >> create test/functional/posts_controller_test.rb > >> create app/helpers/posts_helper.rb > >> create test/unit/helpers/posts_helper_test.rb > >> route map.resources :posts > >> dependency model > >> exists app/models/ > >> exists test/unit/ > >> exists test/fixtures/ > >> create app/models/post.rb > >> create test/unit/post_test.rb > >> create test/fixtures/posts.yml > >> create db/migrate > >> create db/migrate/20090605024542_create_posts.rb > > >> darnoc-laptop:test2 conradwt$ jruby -S rake db:migrate > >> (in /Users/conradwt/ruby.dir/projects/test2) > >> rake aborted! > >> no such file to load -- sqlite3 > > >> (See full trace by running task with --trace) > > >> END TRANSCRIPT: > > >> Thus, I was unable to get past the above step to run anything. However, > >> glassfish started normally but I'm not sure what's > >> going on with database drivers. > > >> -Conrad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---