http://download.oracle.com/docs/cd/E12840_01/wls/docs103/deployment/deploy.html#wp1029629
設(shè)置staging mode的文檔如下
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/ConsoleHelp/taskhelp/deployment/SetAServerStagingMode.html
下面是部分翻譯,鑒于英文水平,這翻譯的實(shí)在太差,只能自己對(duì)付著看
Nostage:管理服務(wù)器(Administration Server)并不拷貝所發(fā)布文件,相反,每一個(gè)目標(biāo)服務(wù)器必須通過(guò)一個(gè)單一源文件夾來(lái)訪問(wèn)這個(gè)文件并進(jìn)行發(fā)布。目標(biāo)服務(wù)器(target servers)上的stage目錄在nostage模式下會(huì)被忽略。
例如,如果你發(fā)布了一個(gè)Java EE應(yīng)用程序到集群中的三個(gè)服務(wù)器,那么每一個(gè)服務(wù)器必須能夠訪問(wèn)相同的應(yīng)用程序文件(從一個(gè)共享的網(wǎng)絡(luò)目錄)去發(fā)布程序
備注:發(fā)布文件的來(lái)源在nostage模式下是一個(gè)路徑,這個(gè)路徑是在發(fā)布的時(shí)候有用戶提供(與stage模式相反,stage模式的來(lái)源是每一個(gè)服務(wù)器的stage目錄)。盡管如此,甚至在nostage模式中,weblogic服務(wù)器拷貝出部分deployment到臨時(shí)目錄。這能使用戶去更新整個(gè)發(fā)布文件或者部分發(fā)布文件。
在nostage模式中,web容器自動(dòng)的檢測(cè)jsp或者servlet的改變。Nostage also allows you to later update only parts of an application by updating those parts in one file system location and then redeploying.
當(dāng)僅僅發(fā)布到管理服務(wù)器的時(shí)候,管理控制臺(tái)使用nostage模式作為默認(rèn)值。Weblogic.Deployer使用目標(biāo)服務(wù)器的staging模式(就是看目標(biāo)服務(wù)器是哪種模式),管理服務(wù)器上默認(rèn)使用nostage模式。如果你在一個(gè)主機(jī)上運(yùn)行一個(gè)集群,或者你通過(guò)一個(gè)共享目錄發(fā)布一個(gè)非常大的應(yīng)用到多個(gè)主機(jī),那么也可以選擇nostage模式。用nostage模式來(lái)發(fā)布大應(yīng)用會(huì)節(jié)省發(fā)布時(shí)間,因?yàn)椴恍枰獜?fù)制文件。
Stage:管理服務(wù)器把所發(fā)布的文件從原始的位置(在管理服務(wù)器上)拷貝到目標(biāo)服務(wù)器的staging目錄上。例如,如果你采用stage模式發(fā)布一個(gè)Java EE應(yīng)用到集群的三個(gè)服務(wù)器上,這個(gè)管理服務(wù)器會(huì)在集群中的每一個(gè)服務(wù)器上都拷貝一份。每一個(gè)服務(wù)器使用拷貝過(guò)來(lái)的本地的文件來(lái)發(fā)布Java EE應(yīng)用。
如果不指定staging 目錄,那么默認(rèn)的目錄是stage:
· For exploded archive deployments,
the deployment name and staging subdirectory are the name of the directory you
deployed (physicianEar in the example above).
· For archived deployments, the default deployment name is the
name of the archive file without the extension. For example, if you deploy
physicianEar.ear, the deployment name and staging subdirectory are
physicianEar.
當(dāng)發(fā)布到多個(gè)weblogic實(shí)例的時(shí)候,管理控制臺(tái)使用stage模式作為默認(rèn)模式。Weblogic.Deployer使用target服務(wù)器的staging mode作為默認(rèn),并且托管的服務(wù)器使用stage模式作為默認(rèn)。
Stage模式保證每一個(gè)服務(wù)器有一個(gè)發(fā)布的本地拷貝,這樣由于一個(gè)網(wǎng)絡(luò)中斷會(huì)使管理服務(wù)器連接不上其他服務(wù)器也沒(méi)關(guān)系(因?yàn)樗玫氖潜镜匕l(fā)布)。如果你正要發(fā)布一個(gè)大的應(yīng)用到集群中的多個(gè)服務(wù)器,那會(huì)是非常耗費(fèi)時(shí)間的。可以考慮nostage模式去避免往多個(gè)服務(wù)器拷貝大文件的多余舉動(dòng)
External_stage:與stage相似,目標(biāo)服務(wù)器使用本地的拷貝來(lái)發(fā)布應(yīng)用。然而,管理服務(wù)器并不自動(dòng)的拷貝所發(fā)布的文件到目標(biāo)服務(wù)器;相反,在發(fā)布之前,你必須拷貝這些文件到每一個(gè)目標(biāo)服務(wù)器的staging目錄。你可以手工的執(zhí)行拷貝或者用自動(dòng)化腳本。
Within each target server’s staging directory, deployment files must be stored in a subdirectory that reflects the deployment name. This can either be the name you type in for the deployment, or the default deployment name (the name of the exploded archive directory, or the name of the archive file without its file extension).
External_stage mode is the least common deployment staging mode. It is generally used only in environments that are managed by third-party tools that automate the required copying of files. You may also choose to use external_stage mode when you are deploying very large applications to multiple machines and you do not have a shared file system (and cannot use nostage mode). Using external_stage in this scenario decreases the deployment time because files are not copied during deployment.