You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mercy <te...@gmail.com> on 2010/04/01 08:19:01 UTC
Why HttpSessionEvent comes prior to ServletRequestEvent
Hi,
I declared two listeners , the former is a ServletRequestListener,
the later is HttpSessionListener.
When a client request calls the application first, why a
HttpSessionEvent comes prior to ServletRequestEvent?
Kind regards,
Mercy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Why HttpSessionEvent comes prior to ServletRequestEvent
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Mercy [mailto:techmercy@gmail.com]
> Subject: Re: Why HttpSessionEvent comes prior to ServletRequestEvent
>
> Thanks,but I can't understand why not ServnetRequestEvent comes first?
Because the QuantumTunneling filter to reorder reality isn't scheduled until Tomcat 8. (Yes, this is 1 April.)
As Mark said, something is triggering session creation before your webapp code gets control. One possibility is that the user is required to log in. Enable full logging if you want to see all the gory details.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: Why HttpSessionEvent comes prior to ServletRequestEvent
Posted by Mercy <te...@gmail.com>.
Thanks,but I can't understand why not ServnetRequestEvent comes first?
Kind regards,
Mercy
Mark Thomas wrote:
> On 01/04/2010 07:19, Mercy wrote:
>
>> Hi,
>>
>> I declared two listeners , the former is a ServletRequestListener,
>> the later is HttpSessionListener.
>>
>> When a client request calls the application first, why a
>> HttpSessionEvent comes prior to ServletRequestEvent?
>>
>
> Because something is triggering session creation before the request hits
> the first filter or servlet in the app.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
Re: Why HttpSessionEvent comes prior to ServletRequestEvent
Posted by Mark Thomas <ma...@apache.org>.
On 01/04/2010 07:19, Mercy wrote:
> Hi,
>
> I declared two listeners , the former is a ServletRequestListener,
> the later is HttpSessionListener.
>
> When a client request calls the application first, why a
> HttpSessionEvent comes prior to ServletRequestEvent?
Because something is triggering session creation before the request hits
the first filter or servlet in the app.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Why HttpSessionEvent comes prior to ServletRequestEvent
Posted by Martin Gainty <mg...@hotmail.com>.
the event listener responds to events which are occuring in the monitored object (in this case ServletContext)
the first event listent is Servlet context creation, at which point the first request can be serviced
http://sqltech.cl/doc/oas10gR3/web.1013/b14426/listener.htm#BABEFJDH
as chuck mentioned there is nothing we can to help unless you have full logging enabled
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Thu, 1 Apr 2010 14:19:01 +0800
> From: techmercy@gmail.com
> To: users@tomcat.apache.org
> Subject: Why HttpSessionEvent comes prior to ServletRequestEvent
>
> Hi,
>
> I declared two listeners , the former is a ServletRequestListener,
> the later is HttpSessionListener.
>
> When a client request calls the application first, why a
> HttpSessionEvent comes prior to ServletRequestEvent?
>
>
> Kind regards,
> Mercy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1