Using addFilter and addServlet

2013-07-17 Thread Dave
I'm using Tomcat 7.0.42. Most examples of ServletContext.addFilter() and ServletContext.addServlet() show it being used from a contextInitialized() event handler, however, the Servlet 3.0 spec doesn't limit the use of addServlet/addFilter to contextInitialized() (unless it is in there

Re: Using addFilter and addServlet

2013-07-17 Thread Mark Thomas
On 17/07/2013 18:38, Dave wrote: I'm using Tomcat 7.0.42. Most examples of ServletContext.addFilter() and ServletContext.addServlet() show it being used from a contextInitialized() event handler, however, the Servlet 3.0 spec doesn't limit the use of addServlet/addFilter to

Re: Using addFilter and addServlet

2013-07-17 Thread Questiony McAskerton From Queryville
On Wed, 17 Jul 2013, Mark Thomas wrote: No, but not permitted by the spec. Mark Mark, Thank you very much for the quick response. Dave - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: Using addFilter and addServlet

2013-07-17 Thread Mark Thomas
On 17/07/2013 19:14, Questiony McAskerton From Queryville wrote: On Wed, 17 Jul 2013, Mark Thomas wrote: No, but not permitted by the spec. Mark Mark, Thank you very much for the quick response. No problem. The expectation of the EG (this was before I was an EG member but I've

Re: Using addFilter and addServlet

2013-07-17 Thread Dave
On Wed, 17 Jul 2013, Mark Thomas wrote: No problem. The expectation of the EG (this was before I was an EG member but I've chatted about this with Filip who was on the EG for Servlet 3.0) was that the adding was only for use during context start. There was some debate about adding during