Deploy to Weblogic Managed Servers

Simply, what is the best (fastest) way to deploy an application (EAR) in a development environment to two managed Weblogic 10 servers that are part of a cluster? I tried the autodeploy directory, but as I understand it, it only deploys to the admin server.

+5
source share
3 answers

I already used ant to create the project, so the most efficient thing seemed to use ant deployment scripts for weblogic. The only problem I ran into was defining the WLDeploy task. Initially, I included all the banks in the weblog library, but then after some search engine narrowed it to the two that you see. I did not check if they are really needed, but it works like this. I will come back and double check later.

<target name="deploy">
    <path id="wl.deploy.path">
        <fileset file="${env.WL_HOME}\server\lib\weblogic.jar" />
        <fileset file="${env.WL_HOME}\server\lib\webservices.jar" />
    </path>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
        <classpath refid="wl.deploy.path" />
    </taskdef>
    <wldeploy
        action="deploy" verbose="false" debug="false"
        name="${ear.name}" source="${deploy.dir}/goip.ear"
        user="weblogic" password="weblogic"
        adminurl="t3://localhost:7001" targets="GO_Cluster1">
    </wldeploy>
</target>   

I also tried using the hotdeploy directory, but as I understand it, the directory only deploys to the admin server and not to the cluster, so it does not fit my needs.

+2
source

antTasks are available for deployment to WebLogic .

, , .

, "" ( WebLogic Console)? ant , -, , ( -).

+1

...

1.Stage 2.Nostage 3.ExtenalStage

WebLogic:

-

     The Administration Server copies the archive files from their source location to a location on each of the targeted Managed Servers that deploy the archive. For example, if you deploy a J2EE Application to three servers in a cluster, the Administration Server copies the application archive files to each of the three servers. Each server then deploys the J2EE Application using its local copy of the archive files. 

- WebLogic Server.

-

     The Administration Server does not copy the archive files from their source location. Instead, each targeted server must access the archive files from a single source directory for deployment. For example, if you deploy a J2EE Application to three servers in a cluster, each server must be able to access the same application archive files (from a shared or network-mounted directory) to deploy the application. 

(, ). , .

External_stage -

  External_stage mode is similar to stage mode, in that the deployment files must reside locally to each targeted server. However, the Administration Server does not automatically copy the deployment files to targeted servers in external_stage mode; instead, you must manually copy the files, or use a third-party application to copy the files for you. 

, .

0
source

All Articles