|
Re[2]: xmlc reloading and autocompilation feature: msg#00014java.enhydra.xmlc
Hello David, Yep, you are right. No need to worry about the ServletContext as it doesn't get persisted across application restarts like the Session is. Jake Thursday, February 20, 2003, 11:47:49 PM, you wrote: DL> On Friday, Feb 21, 2003, at 00:19 Asia/Tokyo, Richard Kunze wrote: >> On Thursday 20 February 2003 14:49, Jacob Kjome wrote: >>> I didn't read this directly from the spec. I just remember it from >>> many >>> conversations on the tomcat-user list where people stated this and >>> referenced the spec as requiring this. >> >> If I'm not mistaken, it's strongly suggested but not actually required. >> Doesn't make much difference, though :-) DL> I just look at the Servlet 2.3 Spec. In 7.7.2 and 10.6, it discusses DL> about serializable objects and HTTP Session. DL> It doesn't say anything about objects being put into the context to be DL> serializable, only for the HTTP session. Also, it doesn't suggest or DL> require the object to be put into the session to be serializable. Just DL> mandate the containers be able to handle objects in the session that DL> marked with Serializable interface in a distributed environment. DL> However, it's stated in the J2EE 1.3, 6.5. The only object that can be DL> put into a HttpSession object are of Serializable, EJBHome, EJBObject DL> and two others. DL> However, nothing about ServletContext's attribute is specified only DL> that context is scoped to one instance per VM and nothing about if it DL> has to be synchronized. >>> However, even if it isn't explicitly stated in the spec, this is a >>> good idea since at least Tomcat serializes sessions to disk at server >>> or >>> app shutdown by default. >> >> +1 from me - many appservers want serializable sessions, and there's >> no harm >> in making the XMLCContext serializable. DL> There is really no such requirement on the ServletContext unless it's DL> in Servlet 2.4 or J2EE 1.4. DL> Again, the XMLCContext is bound to ServletContext not HttpSession. DL> I think the NAS implementation is not following the spec. DL> David DL> _______________________________________________ DL> XMLC mailing list DL> XMLC@xxxxxxxxxxx DL> http://www.enhydra.org/mailman/listinfo.cgi/xmlc -- Best regards, Jacob mailto:hoju@xxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: xmlc reloading and autocompilation feature, David Li |
|---|---|
| Next by Date: | Adding a header and footer at runtime, Ben Sinclair |
| Previous by Thread: | Re: xmlc reloading and autocompilation feature, David Li |
| Next by Thread: | Adding a header and footer at runtime, Ben Sinclair |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |