I'm setting a servlets private static variable from within itself via the contextInitialized(SCE) method but it's not accessible from the init() method once that get's called...I would have thought the static part would make that variable accessible to all thread of the servlet that was started...or is something else going on? Any help is appreciated.

public class controller extends HttpServlet implements ServletContextListener {
private static Logger cblog = null;


   public void init()
   {
       System.out.println("cblog="+cblog);
   }

   public void contextInitialized(ServletContextEvent sce) {
      cblog = Logger.getLogger("cb");
      System.out.println("cblog="+cblog);
   }

<snip>
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to