A
a
Hi,
I have a question about initializing the web app. There are 2 ways to do the
initialization.
1> Create a servlet with high loading priority on web.xml.
2> Use servletcontext listener
Why the second way is better?
I used to use a class with static logger to standardize the format of the
log. I cannot use this class because it has not been loaded when the
servlet context event is sent.
Is there anyway to overcome my problem if I use the servletcontext listener?
Thanks
I have a question about initializing the web app. There are 2 ways to do the
initialization.
1> Create a servlet with high loading priority on web.xml.
2> Use servletcontext listener
Why the second way is better?
I used to use a class with static logger to standardize the format of the
log. I cannot use this class because it has not been loaded when the
servlet context event is sent.
Is there anyway to overcome my problem if I use the servletcontext listener?
Thanks