- tg = new ThreadContext(null, "JSvc service", bc);
- ServletContext ctx = getServletContext();
- ctx.setAttribute("jsvc.starttime", System.currentTimeMillis());
+ String tgn;
+ if(ctx.name() != null)
+ tgn = "JSvc service for " + ctx.name();
+ else
+ tgn = "JSvc service";
+ tg = new ThreadContext(null, tgn, ctx, bc);