Although the Java EE 5 deployment API provides a simple, standardized way to configure applications and modules for use with a Java EE 5-compliant application server, the specification does not address many deployment features that were available in previous WebLogic Server releases. For this reason, WebLogic Server provides important extensions to the Java EE 5 deployment API specification to support capabilities described in [2].
In this article, we will discuss some important concepts for understanding the deployment process in WebLogic Server.
Deployment Tools
The term application deployment refers to the process of making an application or module available for processing client requests in a WebLogic Server domain. You have several options to deploy a web application onto WebLogic Server:
- weblogic.Deployer
- A packaged deployment tool which provides deployment services for WebLogic Server.
- See "Deployment Tools" in Deploying Applications to Oracle WebLogic Server
- Any deployment operation that can be implemented using the WebLogic Deployment API[19] is implemented, either in part or in full, by
weblogic.Deployer
. weblogic.Deployer
is the recommended deployment tool for the WebLogic Server environment.- WLDeploy
- Ant task tool for making WebLogic Server configuration changes
- See "Using Ant Tasks to Configure and Use a WebLogic Server Domain"in Developing Applications for Oracle WebLogic Server
- WLST[4,5,20]
- WLST functionality includes the capabilities of the following WebLogic Server command-line utilities:
- weblogic.Deployer
- WLDeploy
- JSR-88 API for deployment
- WebLogic Deployment API,[19] which implements and extends the Java EE Deployment API specification (JSR-88)
- The WebLogic Deployment API[19] classes and interfaces extend and implement the Java EE Deployment API specification (JSR-88) interfaces, which are described in the javax.enterprise.deploy sub-packages.[6]
- JMX Deployment API[7]
- Supports all of the common functionality available in the Java EE Deployment API specification (JSR-88).
- You can use the JMX API as an alternative to JSR-88 to perform deployment tasks on specified target servers
- WLS console (through JSR-88 API)[8]
- FMWC (through JSR-88 API and JMX Deployment API)[9]
Deployment Concepts
To help you understand the deployment process in WebLogic Server, we have listed the most important concepts below:
- Deployable objects (or artifacts)
- Which can be deployed on a weblogic domain
- EJBs
- Modules
- Supported module types include:[11,12]
- JMS, JDBC, Interception, Config, and WLDF[10]
- Web Services
- Applications[13]
- Physical package types:
- EARs, standalone J2EE and non-J2EE modules
- Deployment operations (or tasks)
- Such as distributing, starting, stopping, deploying, redeploying, undeploying, etc.
- deploying
- if successful, an AppDeploymentMBean[14] for the application will be created
- Deployment targets
- Target types available to WebLogic Server include:
- Cluster
- JMS Server
- SAF Agent
- Server
- Virtual host
- Deployment order
- An integer value that indicates when this artifact is deployed, relative to other deployable artifacts on a server, during startup.
- Artifacts with lower values are deployed before those with higher values.
- Deployment plan
- You can use either
Weblogic Console
orweblogic.PlanGenerator
to export portions of a WebLogic Server deployment configuration into a deployment plan file.[16,17] - Describes the application structure, identifies all deployment descriptors, and exports a subset of the application's configurable properties. For example, it includes:
- Resource dependencies
- Resource declarations
- Non-resource oriented configurable properties
- Properties that may be changed in a running application, etc
- A deployment plan is an XML document used to define an application's deployment configuration for a specific WebLogic Server environment, such as development, test, or production.
- A deployment plan resides outside of an application's archive file and contains deployment properties that override an application's existing Java Enterprise Edition and WebLogic Server deployment descriptors.
- Use deployment plans to easily change an application's WebLogic Server configuration for a specific environment, without modifying existing deployment descriptors.
- Deployment configuration
- Refers to the process of preparing an application or deployable resource for deployment to a WebLogic Server instance.
- Modification of individual WebLogic Server configuration values based on user inputs and the selected WebLogic Server targets
- Deployment staging
- The staging mode of an application or deployment plan can be provided to affect its deployment behavior.
- An application's deployment plan can be staged independently of the application archive, allowing you to stage a deployment plan when the application is not staged.
- If you do not specify a staging mode, the deployment plan uses the value specified for application staging as the default.
- Staging mode includes:
- STAGE—Application files (or deployment plans) are copied to target servers
- NO_STAGE—Application files (or deployment plans) are not copied to target servers
- EXTERNAL_STAGE—Application files (or deployment plans) are copied manually to target servers
"Install Root" Abstraction
The SessionHelper[18] in
WebLogic Deployment API
[19] views an application and deployment plan artifacts using an "install root" abstraction, which ideally is the actual organization of the application. The install root appears as follows:install-root (eg myapp) -- app ----- archive (eg myapp.ear) -- plan ----- deployment plan (eg plan.xml) ----- external descriptors (eg META-INF/weblogic-application.xml...)
References
- JSR 88: JavaTM EE Application Deployment
- WebLogic Server Deployment Features
- Understanding the WebLogic Deployment API (WebLogic 12.1.2)
- WLST FAQs
- WLST Command and Variable Reference
- Java EE 5 API Summary
- The JMX API for Deployment Operations
- Administration Console Online Help
- Using Fusion Middleware Control to Manage WebLogic Server
- The Configuration File in WebLogic Server Domain — config.xml (Xml and More)
- Module Types
- Example Module Deployment
- Oracle® Fusion Middleware Deploying Applications to Oracle WebLogic Server
- Interface AppDeploymentMBean
- MBean Reference for Oracle WebLogic Server
- Create a deployment plan using Administration Console
- Oracle WebLogic Server 12c: Creating and Using a Deployment Plan
- SessionHelper
- WebLogic Deployment API
- WLST: deploy command (WLS 12.1.2)
- Pack and Unpack Commands
- Provide a simple, one-step method for creating WebLogic domains and templates from the command line.
- You cannot, however, use these commands to customize the contents of your WebLogic domain or template in the same way as with the other tools (i.e., Configuration Wizard or WLST).
- Deployment Tools for Developers (WLS 12.1.1)
1 comment:
Thank you for more information on Important Deployment Concepts with appropriate tools.We love to read your posts on weblogic.The Lucidtechsystems offers weblogic online training in hyderabad to students all over world.Lucid Tech Systems provides flexibility to the students while choosing online classes, classroom training, corporate training, a summary of courses and their scope.The other popular course Oracle SOA Training in Hyderabad from best faculty.Nice day.
Post a Comment