A web application called sales was deployed and is currently “Active”. It is targeted to managed1
and managed2. The developers have given you an upload WAR file and you have replaced the
original WAR file with it. From the directory where the WAR file resides, you run the following
weblogic.Deployer command:
java weblogic.Deployer –adminurl t3://192.168.1.101:7001-username weblogic –password
welcom1 –name sales –redeploy
Which statement best describes what happens?
A.
The command fails because no target was specified.
B.
The application is deployed to the Administration Server because no target was specified.
C.
The application is deployed to whichever server is running at 192.168.1.101:7001.
D.
The application is deployed to managed1 and managed2 because that is where it is currently
targeted.
Explanation:
-targetstarget_list (for the redeploy command) is not specified here.
It is used to specify the targets on which to distribute, deploy, or redeploy the application or
module.
If you do not specify a target list with the -deploy command, the target defaults to:
* the Administration Server instance for new deployments (not the case here)
* the application’s current targets for deployed applications (the case in this scenario)
Note:
Syntax:
java [SSL Arguments] weblogic.Deployer [Connection Arguments]
[User Credentials Arguments] COMMAND-NAME command-options
[Common Arguments]
Connection Arguments
The -adminurl value must specify the listen address and listen port of the Administration Server.
-usernameusername. The Administrator username. If you supply the -username option but you do
not supply a corresponding -password option, weblogic.Deployer prompts you for the password.
-redeploy.redeploys a running application or part of a running application.
-name deployment_name. Specifies the deployment name of a deployed application or module.
The -name option can be omitted, in which case the name is taken from the -source fileargument.
Note: weblogic.Deployer is a Java-based deployment tool that provides a command-line interface
to the WebLogic Server deployment API. weblogic.Deployer is intended for administrators and
developers who want to perform interactive, command-line based deployment operations.
Reference: Deploying Applications to WebLogic Server, weblogic.Deployer Command-Line
Reference
Great article and right to the point. I am not sure if this is really the best place to ask but do you folks have any thoughts on where to hire some professional writers? Thanks 🙂
http://www.bastcilkdoptb.com/