我是weblogic的新手,想知道: 在部署的管理控制檯中,您可以選擇部署並單擊停止(選項a:工作完成時,b:強制停止,c:停止,但繼續爲管理請求提供服務) 。停止命令做什麼? 我看過http://docs.oracle.com/cd/E15523_01/apirefs.1111/e13952/taskhelp/applications/StopDeployedEnterpriseApplications.html在weblogic管理控制檯>部署中,stop命令的作用是什麼?
但我還是不明白。從其他閱讀中我已經收集到,停止調用servlet的destroy()方法(如果存在),然後刪除容器(從部署?)? 我有一個帶有destory()方法的servlet,我想知道是否我甚至需要調用它,或者如果刪除部署很好。 當我試圖迫使立即停止,並停止工作時,在部署完成後,我得到的消息:
The application _auto_generated_ear_ is in an incompatible state and will not be included in this operation.
All of the Deployments selected are currently in a state which is incompatible with this operation. No action will be performed.
有沒有人有一個鏈接的過程是怎樣的,這些停止命令進行的?
_auto_generated_ear是使用OEPE在eclipse中創建的。我在web動態項目上使用了運行在服務器上的命令,該動態項目中有一個servlet,並在web.xml中定義,其上下文根在weblogic.xml中定義。它不在自動部署文件夾中。 project.war文件位於:base_domain \ servers \ AdminServer \ tmp \ .appmergegen_1361979966947 \ project.war 因爲我是weblogic/web服務的新手,所以我仍然不確定創建_auto_generated_ear是什麼。我認爲weblogic部署過程創造了這一點。我無法在基本域目錄中找到它。 – jon 2013-02-28 18:08:48
在管理控制檯中,.war顯示爲_auto_generated_ear的模塊。是的,這是我試圖阻止的應用程序。刪除作品。這個servlet實例化了一些線程,並且在destroy方法中我優雅地關閉了它們。正如我剛纔提到的,我並不完全瞭解停止和刪除之間的區別(爲什麼刪除工作和停止不?),但我更喜歡能夠使用start和stop按鈕/命令,而不是每次重新部署。 – jon 2013-02-28 18:13:47
所以我發現_auto_generated_ear是由eclipse創建的,位於工作區\ .metadata \ .plugins \ org.eclipse.wst.server.core \ tmp1 \ base_domain \ _auto_generated_ear_ – jon 2013-02-28 18:37:43