blob: 93bad2589c29a7044f65164c026796f1d9cc640d [file]
<!--
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="ref-lifecyclemodules" name="ref-lifecyclemodules"></a><a id="GHCOM00079" name="GHCOM00079"></a></p>
<h4><a id="sthref184" name="sthref184"></a>Lifecycle Modules</h4>
<a name="BEGIN" id="BEGIN"></a>
<p>Use the Lifecycle Modules page to configure lifecycle modules.</p>
<p>A lifecycle module performs tasks when it is triggered by one or more events in the server's lifecycle. Possible trigger server events are: initialization, startup, ready to service requests, and shutdown. Lifecycle modules are not part of the Java EE specification, but are an enhancement to the GlassFish Server.</p>
<p>For each lifecycle module, the following information is provided.</p>
<dl>
<dt>Name</dt>
<dd>
<p>The name of the lifecycle module.</p>
</dd>
<dt>Enabled or Status</dt>
<dd>
<p>A check mark if the application is enabled, or an X if the application is disabled, if only the default server instance, <code>server</code>, exists.</p>
<p>If clusters or other standalone server instances exist, select Enabled on All Targets to view the targets on which the application is deployed.</p>
</dd>
<dt>Load Order</dt>
<dd>
<p>A value specifying the relative order in which the lifecycle module should be loaded.</p>
</dd>
</dl>
<p>The Lifecycle Modules table also contains the following options.</p>
<dl>
<dt>New</dt>
<dd>
<p>Button to create a new lifecycle module.</p>
</dd>
<dt>Delete</dt>
<dd>
<p>Button to delete one or more selected lifecycle modules.</p>
</dd>
<dt>Enable</dt>
<dd>
<p>Button to enable one or more selected lifecycle modules. Present if only the default server instance, <code>server</code>, exists.</p>
</dd>
<dt>Disable</dt>
<dd>
<p>Button to disable one or more selected lifecycle modules. Present if only the default server instance, <code>server</code>, exists.</p>
</dd>
</dl>
<a id="GHCOM391" name="GHCOM391"></a>
<h5>Related Tasks</h5>
<ul>
<li>
<p><a href="task-lifecyclemodulenew.html">To Create a Lifecycle Module</a></p>
</li>
<li>
<p><a href="task-lifecyclemoduleedit.html">To Edit a Lifecycle Module</a></p>
</li>
<li>
<p><a href="task-lifecyclemoduledelete.html">To Delete a Lifecycle Module</a></p>
</li>
</ul>
<a id="GHCOM392" name="GHCOM392"></a>
<h5>Related asadmin Commands</h5>
<ul>
<li>
<p><a href="http://www.oracle.com/pls/topic/lookup?ctx=E26576_01&id=GSRFM00043"><code>create-lifecycle-module</code>(1)</a></p>
</li>
<li>
<p><a href="http://www.oracle.com/pls/topic/lookup?ctx=E26576_01&id=GSRFM00181"><code>list-lifecycle-modules</code>(1)</a></p>
</li>
<li>
<p><a href="http://www.oracle.com/pls/topic/lookup?ctx=E26576_01&id=GSRFM00095"><code>delete-lifecycle-module</code>(1)</a></p>
</li>
</ul>
<small>Copyright &#169; 2005, 2017, Oracle and/or its affiliates. All rights reserved. <a href="docinfo.html">Legal Notices</a></small>