1、weblogic9.2
首先,找到*:\bea\user_projects\domains\mydomain\config\config.xml文件中<production-mode-enabled>true</production-mode-enabled>;
其次,修改true為false,重啟即可;
2、weblogic8.1
首先,找到d:\bea\user_projects\domains\mydomain80\startWebLogic.cmd文件中set PRODUCTION_MODE=true;
其次,修改true為false,重啟即可;
就是這一段
@rem Set Production Mode. When set to true, the server starts up in production mode. When
@rem set to false, the server starts up in development mode. The default is false.
set STARTMODE=true
---------------------------------------------------------------
據(jù)weblogic技術(shù)工程師說,產(chǎn)品模式是為保證速度快放在指定目錄下,他的包不會自動更新。開發(fā)模式是比較自由的,它保證開發(fā)靈活性,隨便把它扔哪里都會自動更新,這樣會影響速度。一般地開發(fā)好的產(chǎn)品,都給客戶用產(chǎn)品模式部署。
---------------------------------------------------------------
You can start your domain in one of two modes, development or production. You use development mode while you are developing your applications. Development mode uses a relaxed security configuration and allows you to auto-deploy applications. You use production mode when your application is running in its final form. A production domain uses full security and may use clusters or other advanced features.
---------------------------------------------------------------
開發(fā)模式下,主要是為了滿足用戶的應(yīng)用經(jīng)常變化的需求,server會自動刷新你的應(yīng)用,可以立即看到更改的最新頁面,但是這樣就會影響效率。所以,在正式運行的環(huán)境,一般應(yīng)用變化較少,建議選擇產(chǎn)品模式提高性能。
---------------------------------------------------------------
開發(fā)模式下支持熱部署,同時啟動的速度慢,運行性能不如產(chǎn)品模式。