The following table describes the types of applications that can be specified for reloading.
Table 13-9 Types of applications that can be specified for reloading
Types of applications | Applicability | Restrictions | |
---|---|---|---|
EJB application (EJB-JAR) | Stateless Session Bean | R | A new request during the reload process results in an error. Note that if the CTM is used, a new request during the reload process is added to the pending list. |
Stateful Session Bean | R | A new request during the reload process results in an error. Also, if reloaded, the application state is destroyed, so the application state returns to the state before the application was started. | |
Singleton Session Bean | R | If reloaded, the Bean instance is destroyed, and an instance is re-created, so the state of the instance is not stored. | |
Entity Bean | R | A new request during the reload process results in an error. | |
Message-driven Bean | R | ||
Web application (WAR) | Servlet | Y | -- |
JSP | Y | -- | |
Library JAR | -- | Y | -- |
You can specify the scope of reloading with the following range:
Note: app, web, jsp are the values specified in the ejbserver.deploy.context.reload_scope key of usrconf.properties. Note that if you specify none, the reload functionality is disabled.
Note that enabling or disabling of the reload functionality is decided based upon the combination of the scope of the local call optimization functionality specified in the ejbserver.rmi.localinvocation.scope key of usrconf.properties and scope of the reload functionality. The following table describes the mapping of the scope of the local call optimization functionality and the scope of the reload functionality.
Table 13-10 Mapping of the scope of the local call optimization functionality and the scope of the reload functionality
Items | Value of the ejbserver.rmi.localinvocation.scope key | |||
---|---|---|---|---|
all | app | none | ||
Scope of local call optimization | Within the same J2EE server. | Within the same application. | There is no range. | |
Value of the ejbserver.deploy.context.reload_scope key | app | N# | Y | Y |
web | Y | Y | Y | |
jsp | Y | Y | Y | |
none | N | N | N |
#: The settings are incorrect. If you specify ejbserver.deploy.context.reload_scope=app for ejbserver.rmi.localinvocation.scope=all, a message is output when you start the J2EE server and the server fails to start.