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.
- 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.
- From the Virtual Servers drop-down list, select the virtual server or servers to
be associated with the lifecycle module.
By default, no virtual server is selected.
- In the Description field, type a description of the lifecycle module.
- (Optional) In the Additional Properties section, specify additional properties.
To add a property, click the Add Property button. In the blank row
that appears, type the property name in the Name field, and type the
property value in the Value field.
The GlassFishTM Server does not define any additional properties for lifecycle modules.
- Click OK.
See Also