Added a way to get the time of start of the server context.
[jsvc.git] / src / dolda / jsvc / j2ee / Servlet.java
index 4d0d3bd..165b0f2 100644 (file)
@@ -48,6 +48,8 @@ public class Servlet extends HttpServlet {
        } catch(InvocationTargetException e) {
            throw(new ServletException("JSvc bootstrapper failed", e));
        }
+       ServletContext ctx = getServletContext();
+       ctx.setAttribute("jsvc.starttime", System.currentTimeMillis());
     }
     
     public void destroy() {