bea.com | products | dev2dev | support | askBEA |
![]() |
![]() |
|
![]() |
e-docs > WebLogic Server > Administration Console Online Help > Deploying Applications and Modules |
Administration Console Online Help
|
Deploying Applications and Modules
In the Deployment area of the Administration Console, you deploy new applications and modules—J2EE Applications, EJB modules, Web Applications, Connectors, and Startup or Shutdown classes—to servers and clusters in the domain. Deploying a new application or module involves choosing the files to deploy, selecting target servers or clusters to deploy the files, and (if necessary) copying the files to the Administration Server and each target server.
After you have initially setup and deployed an application or module to one or more servers, you can later stop, deploy, or redeploy the application or module without reconfiguring or re-copying its files. The Deployment area of the Administration Console also enables you to do the following tasks:
Preparing Applications and Modules for Deployment
WebLogic Server can deploy applications and modules that are packaged according to the J2EE specifications for Enterprise Applications, Web applications, Web Services, EJB modules, and resource adapters. For each module type, the J2EE specifications define the files required and their location in the directory structure. Modules may also include WebLogic-specific deployment descriptors and, possibly, container classes generated with the WebLogic EJB, RMI, or JSP compilers. See Packaging and Deploying Applications for more information about preparing J2EE application or module files for deployment to WebLogic Server.
Startup and shutdown classes can also be deployed to WebLogic Server instances, but they are not packaged according to the J2EE specifications. You simply identify the class to execute at startup or shutdown.
Archives and Exploded Archives
WebLogic Server enables you to deploy an application or module either as an archive file (.jar file), or as an exploded archive file that contains maintains the same directory structure as the .jar. Applications and modules archived as .jar files must use the correct file extension for the module type:
An exploded archive directory contains the same files and directories as a jar archive. However, the files and directories reside directly in your file system and are not packaged into a single archive file using the jar utility.
Exploded archives are frequently used in a development environment, because they allow you to easily recompile or change parts of the deployment without regenerating a jar archive. To target an exploded archive, you select the top-level directory of the application or module, rather than the jar archive.
Summary of Application and Module Types
The following table summarizes the application and module types you can deploy from the Administration Console, including the key distinguishing deployment files.
Selecting a Deployment Staging Mode
The deployment staging mode determines how a module's archive files are made available to server instances that must deploy the module. WebLogic Server provides three different options for staging archive files:
Nostage mode is the default mode when deploying only to the Administration Server (for example, in a single-server domain). You can also select nostage mode if you run a cluster of server instances on the same machine.
In general, if you are deploying to a standalone development server, or if all target servers reside on the same machine, select nostage mode. In either case, all of the target servers can access the same set of files for deployment.
If you are deploying to multiple, remote servers in a production environment, use stage mode. Stage mode ensures that each server has a local copy of the deployment files on hand, even if a network outage makes the Administration Server unreachable. If you do not want the Administration Server to copy the files for you, use external_stage mode instead and ensure that the files are copied before deployment.
Setting the Application Staging Mode
When you deploy an application or module using the Administration Console, the staging mode is set at the application level, which overrides any deployment mode specified for the target server itself.
To set the staging mode for an application or module, simply follow the instructions under Deploying New Applications and Modules. Note that the Administration Console does not enable you to set the external_stage mode at the application level. If you wish to deploy an application or module with in external stage mode, use the weblogic.Deployer utility. See Packaging and Deploying Applications for more information.
Setting the Server Staging Mode
The server staging mode specifies the default deployment mode for a server if none is specified at deployment time. For example, the server staging mode is used if you deploy an application or module using weblogic.Deployer and you do not specify a staging mode.
To set the server staging mode:
Deploying New Applications and Modules
The Administration Console provides Deployment Assistants to help you deploy each type of application or module. After you have deployed a new application or module, you can redeploy, stop, and later deploy using Administration Console controls.
To deploy a new application or module using a Deployment Assistant:
Changing the Order of Deployment
By default, WebLogic Server deploys Enterprise Applications, EJBs, Web Applications, and Web Services deployed immediately after its subsystems initialize at boot time. Startup classes are deployed and run after application modules have been deployed.
The actual deployment order of modules is determined by their Load Order attribute. By default, new applications and modules are configured with a Load Order value of 100. Modules with a lower Load Order value are deployed before those with a higher value during startup. Modules with the same Load Order value are deployed in alphabetical order using the deployment name.
Follow these steps to view or change the deployment order of modules deployed to the WebLogic Server domain:
To change the deployment order of a Startup class, follow the instructions in Configure a Startup or Shutdown Class.
Changing the Target Servers for a Deployment
After you have deployed a new application or module to one or more servers, you can add or remove servers from the target list to change the scope of the deployment. To change the list of target servers for a configured application or module:
Deploying, Redeploying, and Stopping Applications
After you have deployed a new application or module to one or more servers, you can use the Administration Console to redeploy, stop, or deploy the module files on those servers. To deploy, redeploy, or stop an application or module:
Removing an Application or Module from the Domain
A deployed application or module remains available in the domain to redeploy, stop, or deploy, until you explicitly remove it. If you no longer want to deploy an application to servers in the domain, use the following steps to remove it from the domain:
If you later want to redeploy the removed application or module, follow the instructions in Deploying New Applications and Modules to identify the deployment files and deploy it to servers in the domain.
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |