The notes and restrictions related to reloading are as follows:
Permanent-area-required-by-J2EE-server (1)
= Permanent-area-required-by-container (2)
+ Permanent-area-required-by-container-extension-library (3)
+ Permanent-area-required-by-application (4) x 3
+ Permanent-area-required-by-JDK (7)
Permanent-area-required-by-container-extension-library (3)
= sum-of-sizes-of-.class-files-in-container-extension-library
Permanent-area-required-by-application (4)
= Permanent-area-of-class-created-by-container (5)
+ size-of-J2EE-application-.class-file-created-by-user (6)
+ size-of-library-JAR-and-reference-library-.class-file-created-by-user
(8)
Permanent-area-of-class-created-by-container (5)
= Permanent-area-after-starting-application
- Permanent-area-before-registering-application
size-of-J2EE-application-.class-file-created-by-user (6)
= size-of-.class-files-comprising-J2EE-application
+ size-of-.class-files-in-JAR-files
+ size-of-.class-files-created-by-prior-JSP-compilations
size-of-library-JAR-and-reference-library-.class-file-created-by-user (8)
= size-of-.class-files-in-library-JAR-file
+ size-of-.class-files-in-reference-library-files
120 + 16 + (32 x 3) + 90 = 322 MB
add.jvm.arg=-XX:MaxPermSize=322m
Table 13-20 Execution results of the cjreloadapp command (J2EE applications that use the CDI functionality)
Components containing the updated file | Value of the ejbserver.deploy.context.reload.scope parameter | Execution results of the cjreloadapp command |
---|---|---|
EJB-JAR or Library JAR | app | All the J2EE applications are reloaded. |
web | KDJE42394-E is output and the command execution fails. | |
jsp | ||
WAR | app | KDJE42395-I is output and all the J2EE applications are reloaded. |
web | KDJE42394-E is output and the command execution fails. | |
jsp | ||
JSP | app | KDJE42395-I is output and all the J2EE applications are reloaded. |
web | KDJE42394-E is output and the command execution fails. | |
jsp |
Table 13-21 Listener methods executed when the Web applications are reloaded
Interface name | Method Name |
---|---|
javax.servlet.ServletContextListener | contextDestroyed() |
contextInitialized() | |
javax.servlet.ServletContextAttributeListener | attributeRemoved() |
attributeAdded() | |
javax.servlet.http.HttpSessionActivationListener# | sessionWillPassivate() |
sessionDidActivate() |
#: This interface is not executed when the javax.servlet.http.HttpSession object does not exist.