Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: servletcontext listener vs servlet with high priority on loading Date: Thu, 11 Aug 2011 12:16:44 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: References: <1VO0q.42336$nj1.39176@newsfe19.iad> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 11 Aug 2011 19:16:51 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="20266"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yxGhXG0vuh700KWGVhc1h2jPYQNUqbEM=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: Cancel-Lock: sha1:EhZKmpkhT3yfLLIFy3asFSDq24s= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7026 On 8/11/2011 11:46 AM, a wrote: > I build my own version of Log Util based on the log4j. The purpose is for > convenience. It involves a lot of static method and static variable. I think you have just discovered that home built frameworks like this are often not more convenient. Please try the existing configuration files. > I expect objects can be instantiated in ServletContextListener, but not any > static in a class. Is that true? Pls explain. I don't understand.