| <!-- |
| |
| Copyright (c) 2005, 2018 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0, which is available at |
| http://www.eclipse.org/legal/epl-2.0. |
| |
| This Source Code may also be made available under the following Secondary |
| Licenses when the conditions for such availability set forth in the |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| version 2 with the GNU Classpath Exception, which is available at |
| https://www.gnu.org/software/classpath/license.html. |
| |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| |
| --> |
| |
| <p><a id="task-lifecyclemoduleedit" name="task-lifecyclemoduleedit"></a><a id="GHCOM00170" name="GHCOM00170"></a></p> |
| |
| <h4><a id="sthref64" name="sthref64"></a>To Edit a Lifecycle Module</h4> |
| <a name="BEGIN" id="BEGIN"></a> |
| <ol> |
| <li> |
| <p>In the navigation tree, select the Lifecycle Modules node.</p> |
| <p>The Lifecycle Modules page opens.</p> |
| </li> |
| <li> |
| <p>On the Lifecycle Modules page, click the name of the lifecycle module that you are editing.</p> |
| <p>The Edit Lifecycle Module page opens.</p> |
| </li> |
| <li> |
| <p>In the Class Name field, type the fully qualified name of the lifecycle module's class file.</p> |
| <p>The class must implement the <code>com.sun.appserv.server.LifecycleListener</code> interface.</p> |
| </li> |
| <li> |
| <p>In the Classpath field, type the classpath for the lifecycle module.</p> |
| <p>The classpath specifies where the lifecycle module is located. The default value is <i>domain-dir</i><code>/applications</code>. If the module is already in this directory (that is, in the server classpath), this field can be left blank.</p> |
| </li> |
| <li> |
| <p>In the Load Order field, type a value specifying the order in which this lifecycle module is to be loaded at startup.</p> |
| <p>Modules with smaller integer load order values are loaded sooner. The value can range from 101 to the operating system's <code>MAXINT</code>. Values from 1 to 100 are reserved.</p> |
| </li> |
| <li> |
| <p>In the Description field, type a description of the lifecycle module.</p> |
| </li> |
| <li> |
| <p>Select the Status Enabled checkbox to enable the lifecycle module.</p> |
| <p>This option is enabled by default.</p> |
| </li> |
| <li> |
| <p>Select the On Load Failure Prevent Instance Startup checkbox to specify that the server is to be shut down if the lifecycle module fails to load.</p> |
| <p>This option is disabled by default.</p> |
| </li> |
| <li> |
| <p>The Targets tab appears if clusters or standalone server instances aside from the default server instance (<code>server</code>) exist. Select the Targets tab to view the targets on which the lifecycle module has been enabled. See <a href="task-appviewtargets.html">To View Application Targets</a> for instructions on how to enable or disable a lifecycle module on one or multiple targets.</p> |
| </li> |
| <li> |
| <p>Click Save.</p> |
| </li> |
| </ol> |
| <a id="GHCOM267" name="GHCOM267"></a> |
| <h5>See Also</h5> |
| <ul> |
| <li> |
| <p><a href="task-lifecyclemodulenew.html">To Create a Lifecycle Module</a></p> |
| </li> |
| <li> |
| <p><a href="task-lifecyclemoduledelete.html">To Delete a Lifecycle Module</a></p> |
| </li> |
| </ul> |
| |
| |
| <small>Copyright © 2005, 2017, Oracle and/or its affiliates. All rights reserved. <a href="docinfo.html">Legal Notices</a></small> |