"Subrahmanyam A.V.B." wrote:

>
> - The .war file format is not well justified. Why can't an application
> be jarred into one .jar file?
>

A "Web Application Archive" file is in fact a standard JAR file, with the
extra configuration stuff in a /WEB-INF subdirectory.

>
> - [Sec 7.7.1] Can a session object be shared across sessions? Why is it
> required that session objects take care of synchronization? Can you give
> an example where this is required? Resources that are required across
> multiple servlets can be shared using the SessionContext (and not
> session), and such objects should be synchronized against threading.
>

Session objects cannot be shared across sessions, but mutliple requests to the
same session can be made simultaneously.  Therefore, it is still the author's
responsibility to make sure their objects are thread safe.

The HttpSessionContext object was deprecated in 2.1, and there is no longer
any spec-compliant way to get a reference to it.  You probably meant
ServletContext instead.

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to