Reuse DefaultServlet at runtime from webapp for static resources on disk.

2009-09-08 Thread Robbert-Jan Roos
something like this in a ServletFilter; doFilter(Request request, Response response) { String configDir = our.Config.get("themesdir"); File themesDir = new File(configDir); Servlet s = getDefaultServlet(themesDir); s.service(request, response); } Thanks, Robbert-Jan Roos

ServletContextAttributeListener and a cluster

2009-06-03 Thread Robbert-Jan Roos
Hi, We've been playing around with the DistributedContext, and setAttribute getAttribute works perfectly. I was wondering if it is possible to get a distributed ServletContextAttributeListener. So when we do setAttribute("foo", "bar") on cluster node1 I would like to receive a ServletContextAt