{"id":3608,"date":"2011-10-17T09:02:51","date_gmt":"2011-10-17T14:02:51","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=3608"},"modified":"2011-10-17T09:02:51","modified_gmt":"2011-10-17T14:02:51","slug":"weblogic-11g-managing-deployed-applications","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=3608","title":{"rendered":"WebLogic 11g: Managing Deployed Applications"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Taking_a_Production_Application_Offline\">Taking a Production Application Offline<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Stopping_an_Application_to_Restrict_Client_Access\">Stopping an Application to Restrict Client Access<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Undeploying_an_Application_or_Module\">Undeploying an Application or Module<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Undeploying_Shared_Libraries_and_Packages\">Undeploying Shared Libraries and Packages<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Adding_a_New_Module_to_a_Deployed_Enterprise_Application\">Adding a New Module to a Deployed Enterprise Application<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Changing_the_Order_of_Deployment_at_Server_Startup\">Changing the Order of Deployment at Server Startup<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Default_Deployment_Order\">Default Deployment Order<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Changing_the_Deployment_Order_for_Applications_and_Standalone_Modules\">Changing the Deployment Order for Applications and Standalone Modules<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Changing_the_Deployment_Order_for_Modules_in_an_Enterprise_Application\">Changing the Deployment Order for Modules in an Enterprise Application<\/a>\n\t\t\t<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Taking_a_Production_Application_Offline\"><h2>Taking a Production Application Offline<\/h2><\/span>\n<span id=\"Stopping_an_Application_to_Restrict_Client_Access\"><h3>Stopping an Application to Restrict Client Access<\/h3><\/span>\n<p>* Use -appversion to specify an app version to stop.<br \/>\n* Force stop the active version of the application:<\/p>\n<pre lang=\"bash\">\r\njava weblogic.Deployer -adminurl http:\/\/localhost:7001 -user weblogic\r\n   -password weblogic -name mymodule -stop -adminmode\r\n<\/pre>\n<p>* Graceful stop an application:<\/p>\n<pre lang=\"bash\">\r\njava weblogic.Deployer -adminurl http:\/\/localhost:7001 -user weblogic\r\n   -password weblogic -name mymodule -stop -adminmode -graceful\r\n<\/pre>\n<p>* To restart an application:<\/p>\n<pre lang=\"bash\">\r\njava weblogic.Deployer -adminurl http:\/\/localhost:7001 -user weblogic\r\n   -password weblogic -name mymodule -start\r\n<\/pre>\n<span id=\"Undeploying_an_Application_or_Module\"><h3>Undeploying an Application or Module<\/h3><\/span>\n<p>* Does not delete actual files.<br \/>\n* Forceful undeploy:<\/p>\n<pre lang=\"bash\">\r\njava weblogic.Deployer -adminurl http:\/\/localhost:7001 -user weblogic\r\n   -password weblogic -name mymodule -undeploy\r\n<\/pre>\n<p>* Graceful undeploy:<\/p>\n<pre lang=\"bash\">\r\njava weblogic.Deployer -adminurl http:\/\/localhost:7001 -user weblogic\r\n   -password weblogic -name mymodule -undeploy -graceful\r\n<\/pre>\n<span id=\"Undeploying_Shared_Libraries_and_Packages\"><h3>Undeploying Shared Libraries and Packages<\/h3><\/span>\n<p>* Undeploy all referencing applications first.<\/p>\n<span id=\"Adding_a_New_Module_to_a_Deployed_Enterprise_Application\"><h2>Adding a New Module to a Deployed Enterprise Application<\/h2><\/span>\n<p>* Add newmodule.war to deployed myapp.ear:<br \/>\n&#8211; Don&#8217;t forget to update application.xml to include newmodule.war.<\/p>\n<pre lang=\"bash\">\r\njava weblogic.Deployer -username myname -password mypassword \r\n   -name myapp.ear -deploy -targets newmodule.war@myserver \r\n   -source \/myapp\/myapp.ear\r\n<\/pre>\n<span id=\"Changing_the_Order_of_Deployment_at_Server_Startup\"><h2>Changing the Order of Deployment at Server Startup<\/h2><\/span>\n<span id=\"Default_Deployment_Order\"><h3>Default Deployment Order<\/h3><\/span>\n<p>* JDBC system modules<br \/>\n* JMS system modules<br \/>\n* J2EE Libraries and optional packages<br \/>\n* Applications and standalone modules<br \/>\n* Startup classes<\/p>\n<span id=\"Changing_the_Deployment_Order_for_Applications_and_Standalone_Modules\"><h3>Changing the Deployment Order for Applications and Standalone Modules<\/h3><\/span>\n<p>* By setting the AppDeploymentMBean DeploymentOrder attribute in the Administration Console<br \/>\n* Or programmatically using the AppDeploymentMBean.<br \/>\n* Can NOT changed DeploymentOrder values usinig weblogic.Deployer.<br \/>\n* Lower DeploymentOrder values get deployed earlier.<br \/>\n* Same DeploymentOrder values get deployed by alphabetical order.<br \/>\n* DeploymentOrder defaults to 100.<\/p>\n<span id=\"Changing_the_Deployment_Order_for_Modules_in_an_Enterprise_Application\"><h3>Changing the Deployment Order for Modules in an Enterprise Application<\/h3><\/span>\n<p>* The modules contained in an Enterprise application are deployed in the order in which they are declared in the application.xml deployment descriptor.<\/p>\n<p>[mv_include id=&#8221;3569&#8243;]<br \/>\n* <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E17904_01\/web.1111\/e13702\/managing.htm#DEPGD300\">Managing Deployed Applications<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=3608\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[104],"tags":[],"class_list":["post-3608","post","type-post","status-publish","format-standard","hentry","category-weblogic11g"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-Wc","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3608"}],"version-history":[{"count":5,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3608\/revisions"}],"predecessor-version":[{"id":3653,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3608\/revisions\/3653"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}