Java Servlet Specification Version 2.4 ships with theApplication Server 8.2 release, and can be downloaded from . Version 2.3 of the specification shipped with the J2EE 1.3 SDK. The following items discuss compatibility issues between these releases:
HttpSessionListener sessionDestroyed method was previously used to notify that a session was invalidated. As of this release, this method is used to notify that a session is about to be invalidated so that it notifies before the session invalidation. If the code assumed the previous behavior, it must be modified to match the new behavior.
The following methods are added in the ServletRequest interface in this version of the specification. This addition causes source incompatibility in some cases, such as when a developer implements the ServletRequest interface. In this case, ensure that all the following new methods are implemented:
The getRemotePort() method returns the Internet Protocol (IP) source port of the client or last proxy that sent the request.
The getLocalName() method returns the host name of the IP interface on which the request was received.
The public java.lang.String getLocalAddr() method returns the IP address of the interface on which the request was received.
The public int getLocalPort() method returns the IP port number of the interface on which the request was received.