Exit Print View

Sun GlassFish Enterprise Server v3 Application Deployment Guide

  This Document Entire Library
Print View

Document Information

Preface

1.  Overview of Sun GlassFish Enterprise Server v3 Application Deployment

2.  Deploying Applications

Deploying Applications and Modules

To Deploy an Application or Module

To List Deployed Applications or Modules

To Redeploy an Application or Module

To Disable an Application or Module

To Enable an Application or Module

To Undeploy an Application or Module

To Reload Changes to Applications or Modules Dynamically

To Deploy an Application or Module Automatically

To Deploy an Application or Module by Using a Deployment Plan

To Deploy an Application or Module in a Directory Format

Modifying the Configuration of a Web Application or Module

To Set a Web Context Parameter

To Unset a Web Context Parameter

To List Web Context Parameters

To Set a Web Environment Entry

To Unset a Web Environment Entry

To List Web Environment Entries

Web Module Deployment Guidelines

EJB Module Deployment Guidelines

Deploying a Connector Module

To Deploy and Configure a Standalone Connector Module

Redeploying a Standalone Connector Module

Deploying and Configuring an Embedded Resource Adapter

Assembling and Deploying an Application Client Module

To Assemble and Deploy an Application Client

To Prepare Another Machine for Running an Application Client

To Undeploy an Application Client

Lifecycle Module Deployment Guidelines

Web Service Deployment Guidelines

A.  The asadmin Deployment Subcommands

B.  Enterprise Server Deployment Descriptor Files

C.  Elements of the Enterprise Server Deployment Descriptors

Index

Lifecycle Module Deployment Guidelines

A lifecycle module, also called a lifecycle listener module, provides a means of running long or short Java-based tasks within the Enterprise Server environment, such as instantiation of singletons or RMI servers. Lifecycle modules are automatically initiated at server startup and are notified at various phases of the server life cycle. All lifecycle module interfaces are in the as-install/modules/glassfish-api.jar file.

For general information about lifecycle modules, see Chapter 13, Developing Lifecycle Listeners, in Sun GlassFish Enterprise Server v3 Application Development Guide.

You can deploy a lifecycle module using the create-lifecycle-module subcommand. Do not use asadmin deploy or related commands.

After you deploy a lifecycle module, you must restart the server. During server initialization, the server instantiates the module and registers it as a lifecycle event listener.


Note - If the --failurefatal option of create-lifecycle-module is set to true (the default is false), lifecycle module failure prevents server initialization or startup, but not shutdown or termination.