|
Re: Question about context attributes: msg#00185java.jetty.support
Stephen Stevens wrote: > Should context attributes (i.e. set with ServletContext.setAttribute()) be > cleared between context restarts? This is a very good question! The problem is that context attributes are frequently used as configuration passed from the environment into the context. Thus you don't want to blow away configuration over a stop/start cycle. So we currently don't clear the attributes. But thinking about it - I think we should. The configuration stuff will have to be set on every start - and there are plenty of mechanisms available to help with that. What do others think????????? > My problem is that they do not appear to be, and I am getting > ClassCastExceptions when I retrieve them after a restart. > > Obviously I can clear my attributes manually to resolve the exception, but > what should the behaviour be? > > Thanks. -- Greg Wilkins<gregw@xxxxxxxxxxx> Phone/fax: +44 7092063462 Mort Bay Consulting Australia and UK. http://www.mortbay.com ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/CefplB/TM ---------------------------------------------------------------------~-> For the latest information about Jetty, please see http://jetty.mortbay.org Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: JSPs don't recompile automatically?, Greg Wilkins |
|---|---|
| Next by Date: | Re[2]: Question about context attributes, Oleg Zenzin |
| Previous by Thread: | Question about context attributes, Stephen Stevens |
| Next by Thread: | Re[2]: Question about context attributes, Oleg Zenzin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |