WebLogic 11g: Managing Deployed Applications

 

Taking a Production Application Offline

Stopping an Application to Restrict Client Access

* Use -appversion to specify an app version to stop.
* Force stop the active version of the application:

java weblogic.Deployer -adminurl http://localhost:7001 -user weblogic
   -password weblogic -name mymodule -stop -adminmode

* Graceful stop an application:

java weblogic.Deployer -adminurl http://localhost:7001 -user weblogic
   -password weblogic -name mymodule -stop -adminmode -graceful

* To restart an application:

java weblogic.Deployer -adminurl http://localhost:7001 -user weblogic
   -password weblogic -name mymodule -start

Undeploying an Application or Module

* Does not delete actual files.
* Forceful undeploy:

java weblogic.Deployer -adminurl http://localhost:7001 -user weblogic
   -password weblogic -name mymodule -undeploy

* Graceful undeploy:

java weblogic.Deployer -adminurl http://localhost:7001 -user weblogic
   -password weblogic -name mymodule -undeploy -graceful

Undeploying Shared Libraries and Packages

* Undeploy all referencing applications first.

Adding a New Module to a Deployed Enterprise Application

* Add newmodule.war to deployed myapp.ear:
– Don’t forget to update application.xml to include newmodule.war.

java weblogic.Deployer -username myname -password mypassword 
   -name myapp.ear -deploy -targets newmodule.war@myserver 
   -source /myapp/myapp.ear

Changing the Order of Deployment at Server Startup

Default Deployment Order

* JDBC system modules
* JMS system modules
* J2EE Libraries and optional packages
* Applications and standalone modules
* Startup classes

Changing the Deployment Order for Applications and Standalone Modules

* By setting the AppDeploymentMBean DeploymentOrder attribute in the Administration Console
* Or programmatically using the AppDeploymentMBean.
* Can NOT changed DeploymentOrder values usinig weblogic.Deployer.
* Lower DeploymentOrder values get deployed earlier.
* Same DeploymentOrder values get deployed by alphabetical order.
* DeploymentOrder defaults to 100.

Changing the Deployment Order for Modules in an Enterprise Application

* The modules contained in an Enterprise application are deployed in the order in which they are declared in the application.xml deployment descriptor.

[mv_include id=”3569″]
* Managing Deployed Applications

This entry was posted in weblogic11g. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

This site uses Akismet to reduce spam. Learn how your comment data is processed.