I have a Servlet 2-style webapp. web.xml causes an InitServlet to be instantiated at startup, and one of its tasks is to initialize Log4J using JNDI to find the name of the log4j.xml file.
The @startup singleton I just got working gets instantiated before this happens, and so in its @PostConstruct method, Log4J isn't working yet. I realize I can create a singleton to initialize Log4J, and then set up a dependency on it from other classes, but that seems tedious and a bit redundant, since each class already has a static Logger member. What's the right way to handle this dependency? TIA, -- Rick
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ resin-interest mailing list firstname.lastname@example.org http://maillist.caucho.com/mailman/listinfo/resin-interest