From: m_seki@... Date: 2002-08-27T07:30:11+09:00 Subject: RE: Ruby Based App Server Hi, I'm sorry since I do not know in detail about J2EE, if wrong. > -- An object server that brings objects into being from dups or from in-core > serialization (when designing web sites in ruby, the require statements can > take forever, and this is magnified with a good sized framework) I wrote a library which manages session objects using dRuby. It works with WEBrick or CGI, mod_ruby... * Div http://rwiki.jin.gr.jp/cgi-bin/rw-cgi.rb?cmd=view;name=Div * WEBrick http://www.ruby-lang.org/en/raa-list.rhtml?name=WEBrick * Div Demo1 - Hako-iri-musume puzzle * demo site http://seki.homeip.net:2000/hako/ * tk version http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/app/div/sample/app/hako.rb?rev=1.8&content-type=text/x-cvsweb-markup * What's hako-iri-musume? [ruby-talk:00503] > -- A persistent/pooled connection server for Ruby-DBI, as well as persistent > connections at the mod_ruby level. I wrote a simple connection pool. It's included in Div. * dbiu.rb http://www.ruby-lang.org/~knu/cgi-bin/cvsweb.cgi/app/div/sample/saifu/dbiu.rb?rev=1.1&content-type=text/x-cvsweb-markup * and ruby-postgres async_exec patch [ruby-list:33827] --- postgres.c.ORG Sat Feb 9 04:12:40 2002 +++ postgres.c Sat Feb 9 04:13:07 2002 @@ -230,12 +230,10 @@ Check_Type(str, T_STRING); - while(PQisBusy(conn) == 0) { - result = PQgetResult(conn); - if(result == NULL) - break; + while(result = PQgetResult(conn)) { PQclear(result); } + if (!PQsendQuery(conn, RSTRING(str)->ptr)) { rb_raise(rb_ePGError, PQerrorMessage(conn)); } * Div Demo2 - simple shopping memorandum - using PostgreSQL, DBI.. * http://seki.homeip.net:2000/saifu/