users@glassfish.java.net

Re: servlet 3.0 async, gfv3

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Tue, 13 Apr 2010 18:25:51 -0700

On 4/13/2010 6:03 PM, Shing Wai Chan wrote:
> The servlet init() should only be called once for a given servlet.
I have confirmed that this is correct in GlassFish v3.
Btw, how is it related to async described in the email subject?

> Shing Wai Chan
>
> On 4/13/2010 5:37 PM, emiddio-verizon wrote:
>> i am experimenting with servlet 3.0 async with gfv3;
>> but i am confused -- i thought the servlet's init() method was only
>> to be called 1 time -- at
>> servlet initialization ???
>> i am seeing init() being called for each browser web request.
>> destroy is only being called when i undeploy the servlet
>> this seems wrong to my understanding.
>> gary
>