Just found (and corrected) a probable howler in a pretty busy servlet:

public void init(ServletConfig config) throws ServletException {
  super.init(config);
  sc = config.getServletContext();
  try {
    env = (Context) new InitialContext().lookup("java:comp/env");
    pool = (javax.sql.DataSource) env.lookup(System.getProperty("app.dbid"));
  } catch (NamingException e) {
    e.printStackTrace();
  }
  Locale.setDefault(Locale.ENGLISH);
  logConfPath = sc.getRealPath("")+"WEB-INF/log/log.properties";
}

The super.init() line was missing. We didn't notice because it was serving 
correctly, but have seen a gradual slowdown over a few
days usually cured by a restart. Could the missing line have caused it? If not, 
what bad side effects could we have expected please?

-- 
--------------------------
http://www.phonewebcam.com
[EMAIL PROTECTED]



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to