如何在weblogic集群上部署Web应用程序

时间:2013-12-31 08:11:13

标签: weblogic weblogic12c

我在server1上配置了web应用程序。在配置中,我选择了我的集群(server1和server2)作为目标服务器。我想学的是还需要在server2上配置部署吗? server2中没有war文件,我对这个应用程序在server2上的运行方式也有点好奇。

2 个答案:

答案 0 :(得分:1)

不,weblogic将自动处理对两个托管服务器的部署。

答案 1 :(得分: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实例时的默认模式。

Nostage模式 -

         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. 

仅在部署到管理服务器时(例如,在单服务器域中),Nostage模式是默认模式。如果在同一台计算机上运行服务器实例群集,也可以选择nostage模式。

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. 

希望它对你有所帮助。