WebSphere Application Server - Express allows you to compile JavaServer Pages files written to the JSP specification as a batch. This improves performance by reducing the response time on the first request. For iSeries, another option to consider is to use the Pre-touch tool which can compile and load JSP class files into the Application server JVM for improved performance over the JSP batch compiler.
To use the batch compiler for JSP files, follow these steps:
cd /QIBM/ProdData/WebASE51/ASE/bin
The syntax of the JspBatchCompiler command:
JspBatchCompiler -enterpriseapp.name name [ -instance name ] [ -webmodule.name name ] [ -cell.name name ] [ -node.name name ] [ -server.name name ] [ -filename jsp name ] [ -keepgenerated <true|false> ] [ -verbose <true|false> ] [ -deprecation <true|false> ]
where the parameters are:
enterpriseapp.name
The name of the Enterprise Application you want to compile.
instance
The name of the WebSphere instance. This parameter is required.
webmodule.name
The name of the specific Web module that you want to compile. If this argument is not set, all Web modules in the enterprise application are compiled.
cell.name
The name of the cell in which the application is deployed.
node.name
The name of the node in which the application is deployed.
server.name
The name of the server in which the application is deployed. The default is server1.
filename
The name of a single JSP file that you want to compile. If this argument is not set, all files in the Web module are compiled. Alternatively, if filename is set to the name of a directory, only the JSP files in that directory are compiled.
keepgenerated
If set to true, WebSphere Application Server - Express saves the generated .java files used for compilation on your server. By default, this is set to false and the .java files are erased after the class files have been compiled.
verbose
Indicates the compiler should generate verbose output while compiling the generated sources.
deprecated
Indicates the compiler should generate deprecation warnings while compiling the generated sources.
Note: If the names that are specified for these arguments are composed of two or more words separated by spaces, you must add quotation marks (") around the names.
Following compilation, compiled .class files for the JSPs in the examples Web module are found within the temp subdirectory of the instance. For example, /QIBM/UserData/WebASE51/ASE/instance/temp where instance is the name of your WebSphere instance.