All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.task-lifecyclemodulenew.html Maven / Gradle / Ivy

There is a newer version: 3.2-b03
Show newest version



To Create a Lifecycle Module

  1. In the navigation tree, select the Lifecycle Modules node.

    The Lifecycle Modules page opens.

  2. On the Lifecycle Modules page, click New.

    The New Lifecycle Module page opens.

  3. In the Name field, type a name for the lifecycle module.
  4. 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.

  5. 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.

  6. 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.

  7. Select the Status Enabled checkbox to enable the lifecycle module.

    This option is enabled by default.

  8. 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.

  9. 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.

  10. In the Description field, type a description of the lifecycle module.
  11. (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.

  12. Click OK.
See Also




© 2015 - 2024 Weber Informatics LLC | Privacy Policy