en.help.task-lifecyclemodulenew.html Maven / Gradle / Ivy
To Create a Lifecycle Module
- In the navigation tree, select the Lifecycle Modules node.
The Lifecycle Modules page opens.
- On the Lifecycle Modules page, click New.
The New Lifecycle Module page opens.
- In the Name field, type a name for the lifecycle module.
- In the Class Name field, type the fully qualified name of the lifecycle
module's class file.
The class must implement the com.sun.appserv.server.LifecycleListener interface.
- In the Classpath field, type the classpath for the lifecycle module.
The classpath specifies where the lifecycle module is located. The default value is
domain-dir/applications. If the module is already in this directory (that is, in the
server classpath), this field can be left blank.
- In the Load Order field, type a value specifying the order in which
this lifecycle module is to be loaded at startup.
Modules with smaller integer load order values are loaded sooner. The value can range
from 101 to the operating system's MAXINT. Values from 1 to 100 are
reserved.
- In the Description field, type a description of the lifecycle module.
- Select the Status Enabled checkbox to enable the lifecycle module.
This option is enabled by default.
- 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.
This option is disabled by default.
- To add target server instances and clusters on which to enable the lifecycle
module, select them from the Available Targets list and use the Add button
to move them to the Selected Targets list.
The Target option appears if clusters or stand-alone server instances aside from the
default server instance (server) exist. By default, the lifecycle module is enabled on
the default server instance, named server. Use the Add All button to deploy to
all targets. Use the Remove and Remove All buttons to remove targets from
the Selected Targets list.
- Click OK.
See Also
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices