dev@glassfish.java.net

Re: Gem glassfish v3: concurrency problems...

From: Gianluca Tessarolo <tessarolo.gianluca_at_mediamaster.it>
Date: Thu, 06 Mar 2008 10:45:14 +0100

Hi Pramod,

thanks a lot, I'll wait for the next gem release.

Keep up the good work !!!
> Hi Gianluca
> Thanks for the detailed steps that you have provided. I am the
> person responsible for maintaining and releasing the GlassFish V3 gem.
> Yes there is a problem with the gem and in fact there is an issue
> already on this topic - 3966
> <https://glassfish.dev.java.net/issues/show_bug.cgi?id=3966>
> Sorry U ran into this issue. I would be definitely fixing this issue
> as part of the next gem release.
>
>
> Thanks
> Pramod Gopinath
> http://blogs.sun.com/pramodg
>
> Gianluca Tessarolo wrote:
>> Hi,
>>
>> I've tried the new GlassFish gem (Arun Gupta notified me about the new
>> release and tell me to notify the problem at your email address)...
>>
>> There are problems with concurrent requests...
>>
>> Here what I've done:
>>
>> - Installed JRuby 1.1RC2 (fresh installation)
>> - Installed rails gem: jruby -S gem install rails
>> - Installed activerecord jdbc adapter: jruby -S gem install
>> activerecord-jdbc-adapter
>> - Copy mysql jar into jruby lib
>> - Installed new gf gem: jruby -S gem install
>> glassfish-0.1.1-universal-java-1.5.gem
>> - Run my rails app with 10 rails processes: jruby -J-Djruby.runtime=10
>> -S glassfish_rails base
>>
>> It works very well and fast but if I try to call
>> http://localhost:3000/test/test defined as:
>>
>> class TestController < ApplicationController
>> def test
>> # This is a method to test the rails concurrency under gf...
>> 50000000.times do
>> end
>> render :text => "I'm the test..."
>> end
>> end
>>
>> and concurrently try to call a second method
>> http://localhost:3000/other/show defined as:
>>
>> class OtherController < ApplicationController
>> def show
>> render :text => "I'm here !"
>> end
>> end
>>
>> the last response (other/show) show a blank page !!!
>>
>> The glassfish gem write: GRAVE: null
>>
>> The rails log seems ok (no error at all)
>>
>> So, again, the concurrency support seems to be broken...
>>
>> Hope this helps...
>>
>


-- 
Gianluca Tessarolo
TreNetMediaMaster S.r.l.
The Internet Technology Company
Telefono +39(049)776196
Fax +39(049)8087806
Visit us @: http://www.trenet.it - http://www.mediamaster.it
e-mail me @: tessarolo.gianluca_at_mediamaster.it
----------------------------------------------------------------------
Le informazioni trasmesse sono destinate esclusivamente alla persona o
alla società in indirizzo e sono da intendersi confidenziali e riservate.
Ogni trasmissione, inoltro, diffusione o altro uso di queste
informazioni a persone o società differenti dal destinatario é proibita.
Se ricevete questa comunicazione per errore, contattate il mittente e
cancellate le informazioni da ogni computer.