Deploying Applications and Modules with weblogic.Deployer 6-5
6.6 Targeting Deployments to Servers, Clusters, and Virtual Hosts
In most production environments, you typically deploy applications to one or more Managed Servers configured in a WebLogic Server domain. In some cases, the servers
may be included as part of a WebLogic Server cluster, or a virtual host may be used for directing Web application requests. The term deployment target refers to any server or
collection of servers to which you can deploy an application or module.
6.6.1 Understanding Deployment Targets
Deployment targets are the servers or groups of servers to which you deploy an application or standalone module. During the deployment process, you select the list
of targets from the available targets configured in your domain. You can also change the target list after you have deployed a module.
The following table describes all valid deployment targets for WebLogic Server, and lists the types of modules that you can deploy to each target.
6.6.2 Deploying to One or More Targets
To deploy to a single WebLogic Server target, list the configured target name after the -targets option to weblogic.Deployer. For example, to deploy a Web application
to a configured virtual host named companyHost, use the command:
java weblogic.Deployer -adminurl http:localhost:7001 -username weblogic
Table 6–1 WebLogic Server Deployment Targets
Target Type Description
Valid Deployments
WebLogic Server Instance
A WebLogic Server instance, such as an Administration
Server in a single-server domain, or a Managed
Server. Java EE Applications
Java EE modules JMS, JDBC, or WLDF modules
Java EE Libraries Cluster
A configured cluster of multiple WebLogic Server
instances Java EE Applications
Java EE modules JMS, JDBC, or WLDF modules
Java EE Libraries Virtual Host
A configured host name that routes requests for a
particular DNS name to a WebLogic Server instance or
cluster. See Configuring Virtual Hosting
inConfiguring Server Environments for Oracle
WebLogic Server for more information.
Web applications
JMS Server A JMS Server configured in
a WebLogic Server domain A JMS queue or topic defined within a JMS module
When deployed as a standalone application module, a JMS, JDBC, or WLDF resource appears as a Java EE deployment in the
Administration Console. A standalone JMS application module can be targeted to server,
cluster, or virtual host targets; queues and topics defined within a JMS module can be further targeted to a configured JMS server.
For information on sub-module targeting, see Section 6.8.2,
Using Sub-Module Targeting with JMS Application Modules .
6-6 Deploying Applications to Oracle WebLogic Server
-password weblogic -deploy -targets companyHost c:\localfiles\myWebApp.ear
Specify multiple targets using a comma-separated list, as in: java weblogic.Deployer -adminurl http:localhost:7001 -username weblogic
-password weblogic -deploy -targets ManagedServer-1,ManagedServer-2 c:\localfiles\myapp.ear
6.6.3 Deploying to a Cluster Target