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

60 lines
3.6 KiB
HTML
Raw Permalink 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: Servlets</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="snrserv"></a>Backup and recovery: servlets</h3>
<p>The following items should be considered for backup when using servlets:</p>
<ul>
<li>servlet source and class files</li>
<li>HTTP configuration</li>
<li><a href="snradmin.htm">administrative configuration</a></li>
</ul>
<p><strong>Servlet source and class files</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 commands below 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>If you have located utility or general purpose classes in other directories, such as /QIBM/UserData/WebASE/ASE5/<em>instance</em>/lib/app or /QIBM/UserData/WebASE/ASE5/<em>instance</em>/lib/ext, be sure to include those locations in your backup plan as well.</p>
<p><strong>HTTP configuration</strong></p>
<p><strong>Note:</strong> The following information applies to IBM HTTP Server for i5/OS (powered by Apache). If you are using Lotus Domino HTTP Server, see the <a href="http://www.notes.net/notesua.nsf?OpenDatabase" target="_">Notes.net Documentation Library</a> (http://www.notes.net/notesua.nsf?OpenDatabase) <img src="www.gif" width="18" height="15"
alt="Link outside Information Center" border="0">.</p>
<p>Changes to the HTTP configuration are often made to enable WebSphere Application Server - Express to serve servlets and JSP requests, and to enable WebSphere Application Server - Express security. You should consider saving your HTTP configuration as a part of your WebSphere Application Server - Express backup and recovery.</p>
<p>HTTP server instances for IBM HTTP Server for i5/OS (powered by Apache) are members of the QATMHINSTC file in the library QUSRSYS. This is an example save command for this file:</p>
<pre>SAVOBJ OBJ(QATMHINSTC) LIB(QUSRSYS) DEV(*SAVF) OBJTYPE(*FILE) SAVF(WSALIB/WSASAVF)</pre>
<p>The HTTP configurations for IBM HTTP Server for i5/OS (powered by Apache) are stored in the integrated file system in a subdirectory, chosen when the configuration was created. The recommended location is within the WebSphere instance directory. You can determine this file location by inspecting HTTP server instance member in the QATMHINSTC file in library QUSRSYS. This is an example save command for this file:</p>
<pre>SAV DEV('/QSYS.lib/wsalib.lib/wsasavf.file') OBJ(('/QIBM/UserData/WebASE/ASE5/<em>instance</em>/apache/conf')
('/QIBM/UserData/WebASE/ASE5/<em>instance</em>/htdocs'))</pre>
<p>where <em>instance</em> is the name of your instance.</p>
</body>
</html>