uCosminexus Application Server, Web Container Functionality Guide
You can use the JSP pre-compilation functionality in the following cases:
The following table describes the mapping between the applicable stages for JSP pre-compilation and the commands used:
Table 2-10 Mapping between the applicable stages for JSP pre-compilation and the commands used
Applicable stages | Commands used | Reference | ||
---|---|---|---|---|
Application development | When a Web application is developed | cjjspc command | (1) | |
System operation | When J2EE applications are started | cjstartapp command | (2) | |
When J2EE applications are switched | Normal switching | cjstartapp command | ||
Switching by reloading | cjjspc command | |||
Switching by redeploying | cjjspc command |
The stages in which the JSP pre-compilation is used are explained below. For an overview of the commands used, see 2.5.2 Methods for performing JSP pre-compilation.
Note that the JSP compilation is executed during the execution of the cjstartapp command if you specify the option for performing JSP pre-compilation by the cjstartapp command. Because this process is performed in the J2EE server, the memory usage of the J2EE server process increases temporarily.
During the development of a Web application, execute the JSP pre-compilation functionality after the completion of the Web application.
Use the cjjspc command for implementing the JSP pre-compilation. The following figure shows an example of application of JSP pre-compilation during development of a Web application:
Figure 2-5 Example of applying the JSP pre-compilation functionality when developing a Web application
Use the JSP pre-compilation functionality to compile all the JSP files included in a completed Web application at the same time. As a result, you can improve the response time of JSP initial request during execution of a Web application.
To compile all the JSP files in a Web application collectively, implement the 'Pre-compilation in each Web application method of the cjjspc command.
For the cjjspc command, see cjjspc (JSP pre-compilation) in the uCosminexus Application Server Command Reference Guide.
To improve the response time of the JSP initial request during system operation, implement the JSP pre-compilation before starting the operation. Implement the JSP pre-compilation during system operation when starting a J2EE application and when switching the J2EE applications. The following figure shows an example of application of JSP pre-compilation during system operation:
Figure 2-6 Applying the JSP pre-compilation functionality during system operations
The overview of each stage applicable to the JSP pre-compilation functionality is explained below. For details on the compilation methods using the JSP pre-compilation functionality during system operations, see 5.6.3 Substituting and maintaining J2EE applications in the uCosminexus Application Server Operation, Monitoring, and Linkage Guide.
When a J2EE application is started, you can use the JSP pre-compilation for an already imported J2EE application. Execute the JSP pre-compilation functionality to be implemented when a J2EE application is started by specifying the option for implementing the JSP pre-compilation in the cjstartapp command. If you execute this command, the JSP files included in the J2EE application are complied together before starting the J2EE application.
You can use the JSP pre-compilation functionality before switching the J2EE applications. Note that the method of JSP pre-compilation depends upon how the J2EE applications are switched.
For an overview of switching J2EE applications, see 5.6.3 Substituting and maintaining J2EE applications in the uCosminexus Application Server Operation, Monitoring, and Linkage Guide. For reloading, see 13.8 Detecting updates and reloading J2EE applications in the uCosminexus Application Server Common Container Functionality Guide.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.