ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/admin/snrjsp.htm

55 lines
3.3 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Backup and recovery: JavaServer Pages (JSP) files</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="snrjsp.htm"></a>Backup and recovery: JavaServer Pages (JSP) files</h3>
<p>The following items should be considered for backup when using JavaServer Pages<sup>(TM)</sup> (JSP) files:</p>
<ul>
<li>JSP source and generated servlet classes</li>
<li>HTTP configuration</li>
<li><a href="snradmin.htm">administrative configuration</a></li>
</ul>
<p><strong>JSP source and generated servlet classes</strong></p>
<p>Application code and configuration (such as bindings) is located by default in the /QIBM/UserData/WebASE/ASE5/<em>instance</em>/installedApps directory. By saving this directory, you save your installed applications, including HTML, servlets, and JavaServer Pages (JSP) files. Normally, each application is located in a separate subdirectory, so you can choose to save all applications or a subset.</p>
<p><strong>Note:</strong> The following commands have been wrapped for display purposes. Enter each as a single command.</p>
<p>This command saves all installed applications:</p>
<pre>SAV DEV('/QSYS.lib/wsalib.lib/wsasavf.file')
OBJ(('/QIBM/UserData/WebASE/ASE5/<em>instance</em>/installedApps'))</pre>
<p>This command saves the sampleApp application only:</p>
<pre>SAV DEV('/QSYS.lib/wsalib.lib/wsasavf.file')
OBJ(('/QIBM/UserData/WebASE/ASE5/<em>instance</em>/installedApps/<em>cellName</em>/sampleApp.ear'))</pre>
<p>When JSP files run, a servlet class is generated, compiled, and then run. When saving and restoring your JSP files, you can elect to save only the JSP source or the generated files as well.</p>
<ul>
<li>If you save and restore only the JSP source, the servlet source and class files are regenerated when they are invoked. This is a simpler, smaller save and restore operation. Note that regeneration slows the first requests, and default optimization is done on the generated Java programs.</li>
<li>If you save and restore the source and generated files, no regeneration is done. If you have optimized Java programs to levels other than the default, this optimization is preserved.</li>
</ul>
<p>WebSphere Application Server - Express places the generated files (.class, .java, and optionally, .dat) in a temporary directory under the WebSphere Application Server - Express instance. For example:</p>
<pre>/QIBM/UserData/WebASE/ASE5/<em>instance</em>/temp/<em>node</em>/
<em>appserver</em>/<em>application</em>/<em>web_module</em></pre>
<p>where <em>instance</em> is the name of your instance, <em>node</em> is the name of the iSeries server or partition on which your WebSphere Application Server - Express instance is running, <em>appserver</em> is the name of your application server instance, <em>application</em> is the name of the enterprise application to which the JSP file belongs, and <em>web_module</em> is the Web module that contains your JSP file.</p>
<p><strong>Note:</strong> A .dat file is a helper file used by the generated servlet.</p>
</body>
</html>