Friday, November 9, 2012

Deploy using weblogic.Deployer utility

Hi Guys

This post gives the information about  deploy an  application using weblogic.Deployer utility


Deployment Operations

The deployment tools provide support for performing these common deployment operations:

  • Deploy—making deployment source files available to target servers and loading classes into classloaders so that applications are available to clients.
  • Distribute—for stage mode deployments, only copy the deployment files to the target servers (but do not start the deployment).
  • Redeploy—updating an deployment unit or part of a deployment unit (for example, an EAR, a module within an EAR, or a static file in a Web Application) that is currently deployed and available to clients. When redeploying an entire application, all of the application's modules must redeploy successfully or the entire application is stopped.
Note: An application becomes unavailable to clients during redeployment. WebLogic Server doesn't guarantee the operation of the application and deployment task if there is an access from the client at this time. For this reason, redeployment is not recommended for use in a production environment.
  • Stop—unloading an application's classes and making an application unavailable to clients. Stopping still leaves the deployment files and deployment name available to target servers for subsequent redeployment or starting.
  • Start—reloading an application's classes into classloaders and making the application available to clients. Starting requires that the deployment files be available on target servers as a result of an earlier deployment.
  • Undeploy—stopping a deployment unit and then removing its deployment files and deployment name from target servers
  • various modes of deployment : 
    stage    : admin copies the files to managed servers
    no-stage   : manged servers copy their own files
    external-stage  : weblogic Administrator has to manually copy the files to the staging                      area 


    Syntax of Deploy

    Java weblogic.Deployer -adminurl <AdminserverIP:port>
                                   - username <admin username>
                                   -password <admin password>
                                   -Deploy/undeploy/redeploy/listapps/stop/start
                                   -source <location of Deployble file>
                                   -library/application
                                   -name <name of the application>
                                   -stage/no-stage/External-stage
                                   -target <standlone server or cluster>


    Example:

    Deploy

    java weblogic.Deployer -adminurl 192.168.128.7:7001 -username weblogicsh -password weblogicsh -deploy -source /home/subha/desktop/Deploy-files/jsf-1.2.war -stage -targets mngserver_1,mngserver_2,mngserver_3,mngserver4  -library

    Undeploy

     java weblogic.Deployer -adminurl 192.168.128.7:7001 -username weblogic -password weblogic -undeploy  jsf-1.2.war -targets mngserver_1,mngserver_2,mngserver_3,mngserver4  -library

    ........like that
                                   

1 comment: