Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Start servlet before Listener

843841May 3 2005 — edited May 5 2005
I try to use context listener to fire up some cache when my app start, this includes the usual logging calls. My problem is that log4j servlet is not yet initialized when the listener code runs.

Is there a way to make the servlet run BEFORE the listener? or I need move all startup code back to using servlets?

Is the context listener not meant to include any logging calls? or only System.out?

Any ideas/solutions welcomed?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2005
Added on May 3 2005
3 comments
178 views