X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Fj2ee%2FServlet.java;h=2b149c910bb36ae340a4c2a977ea1da56845bba1;hb=762009abaf3acc38003c9635115c721c602bdaa5;hp=43726527083ba0fcbeb7eec9e5fca1d2958ddb34;hpb=a7c50bd905f146c3a28c991e72f43bc9079f3ed8;p=jsvc.git diff --git a/src/dolda/jsvc/j2ee/Servlet.java b/src/dolda/jsvc/j2ee/Servlet.java index 4372652..2b149c9 100644 --- a/src/dolda/jsvc/j2ee/Servlet.java +++ b/src/dolda/jsvc/j2ee/Servlet.java @@ -10,7 +10,7 @@ import javax.servlet.*; public class Servlet extends HttpServlet { private ThreadContext tg; - public void init() throws ServletException { + public void init(ServletConfig cfg) throws ServletException { Properties sprop = new Properties(); try { InputStream pi = Servlet.class.getClassLoader().getResourceAsStream("jsvc.properties"); @@ -31,9 +31,7 @@ public class Servlet extends HttpServlet { } catch(ClassNotFoundException e) { throw(new ServletException("Invalid JSvc bootstrapper specified", e)); } - tg = new ThreadContext(null, "JSvc service", bc); - ServletContext ctx = getServletContext(); - ctx.setAttribute("jsvc.starttime", System.currentTimeMillis()); + tg = new ThreadContext(null, "JSvc service", J2eeContext.create(cfg), bc); } public void destroy() {