Dolda2000 GitWeb
/
jsvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made the server context a more useful concept.
[jsvc.git]
/
src
/
dolda
/
jsvc
/
j2ee
/
Servlet.java
diff --git
a/src/dolda/jsvc/j2ee/Servlet.java
b/src/dolda/jsvc/j2ee/Servlet.java
index
4372652
..
14ace40
100644
(file)
--- 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 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");
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));
}
} 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", new J2eeContext(cfg), bc);
}
public void destroy() {
}
public void destroy() {