Thank you for your reply.
Then what should be put in the servlet context listener and what should be put in the static block?
From: Benjamin Possolo <bpossolo@gmail.com>
To: google-web-toolkit@googlegroups.com
Cc: Leung <leung1_2000@yahoo.com>
Sent: Monday, December 31, 2012 1:59 AM
Subject: Re: execute priority ServletContextEvent handler and static block
To: google-web-toolkit@googlegroups.com
Cc: Leung <leung1_2000@yahoo.com>
Sent: Monday, December 31, 2012 1:59 AM
Subject: Re: execute priority ServletContextEvent handler and static block
do not put code in a static block in your servlet context listener.
the context initialized method is guaranteed to be called exactly once for a servlet context listener before any of your servlets are initialized
No comments:
Post a Comment