{"id":3593,"date":"2011-10-17T09:05:56","date_gmt":"2011-10-17T14:05:56","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=3593"},"modified":"2011-10-17T09:05:56","modified_gmt":"2011-10-17T14:05:56","slug":"weblogic-11g-deployment-exporting-an-application-for-deployment","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=3593","title":{"rendered":"WebLogic 11g Deployment: Exporting an Application for Deployment"},"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=\"#Purpose\">Purpose<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Tools_for_Exporting\">Tools for Exporting<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Deployment_Property_Classifications\">Deployment Property Classifications<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Export_Steps\">Export Steps<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Stage_Application_Files\">Stage Application Files<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Generating_a_Template_Deployment_Plan_using_weblogic.PlanGenerator\">Generating a Template Deployment Plan using weblogic.PlanGenerator<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Customizing_the_Deployment_Plan_Using_the_Administration_Console\">Customizing the Deployment Plan Using the Administration Console<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Manually_Customizing_the_Deployment_Plan\">Manually Customizing the Deployment Plan<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Validating_the_Exported_Deployment_Configuration\">Validating the Exported Deployment Configuration<\/a>\n\t\t\t<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Purpose\"><h2>Purpose<\/h2><\/span>\n<p>* To expose the external resources requirements of the application, e.g. JNDI names, as null variables in a deployment plan.<br \/>\n* To expose additional configurable properties, such as tuning parameters (e.g. EJB caching), as variables in a deployment plan.<\/p>\n<span id=\"Tools_for_Exporting\"><h2>Tools for Exporting<\/h2><\/span>\n<p>* weblogic.PlanGenerator:<br \/>\n&#8211; Creates a template deployment plan with null variables for selected categories of WebLogic Server deployment descriptors.<br \/>\n&#8211; You typically need to manually modify the deployment plan created by weblogic.PlanGenerator, either manually or using the Administration Console, to delete extraneous variable definitions or add variables for individual properties.<br \/>\n* Admin Console:<br \/>\n&#8211; Generate a new deployment plan .<br \/>\n&#8211; Or add\/override variables in an existing plan.<br \/>\n&#8211; More flexible than weblogic.PlanGenerator. It allow interactively add\/edit individual deployment descriptor properties in the plan, rather than export entire categories of descriptor properties.<\/p>\n<span id=\"Deployment_Property_Classifications\"><h2>Deployment Property Classifications<\/h2><\/span>\n<p>* Non-configurable properties:<br \/>\n&#8211; ejb-name<br \/>\n* Dependency properties:<br \/>\n&#8211; datasource name used within EJB code.<br \/>\n* Declaration properties:<br \/>\n&#8211; JNDI name of an EJB<br \/>\n* Configurable properties: rest of properties, e.g. tuning properties.<br \/>\n&#8211; Dynamic properties: do not require server restart.<br \/>\n&#8211; Non-dynamic properties: do require server restart.<\/p>\n<span id=\"Export_Steps\"><h2>Export Steps<\/h2><\/span>\n<span id=\"Stage_Application_Files\"><h3>Stage Application Files<\/h3><\/span>\n<p>1. Create a top-level installation directory for your application:<\/p>\n<pre lang=\"bash\">\r\nmkdir c:\\exportapps\\myApplication\r\n<\/pre>\n<p>2. Create \\app and \\plan subdirectories:<\/p>\n<pre lang=\"bash\">\r\nmkdir c:\\exportapps\\myApplication\\app\r\nmkdir c:\\exportapps\\myApplication\\plan\r\n<\/pre>\n<p>3. Copy the complete application to be exported into the \\app subdirectory. The application can be either in archive or exploded archive form:<\/p>\n<pre lang=\"bash\">\r\ncp -r c:\\dev\\myApplication c:\\exportapps\\myApplication\\app\r\n<\/pre>\n<p>&#8211; The \\app directory must include the full application distribution, and can include the WebLogic Server descriptor files that you use for deployment to your development environment.<br \/>\n* Use -plan option for weblogic.PlanGenerator to specify the location and file name of the generated plan.<br \/>\n&#8211; Otherwise, the plan is generated in <strong>TEMP\/weblogic-install\/application_name\/config<\/strong> directory, where TEMP is the temporary directory for your environment. For example, C:\\Documents and Settings\\username\\Local Settings\\Temp\\weblogic\\install\\myApplication.ear\\config.<\/p>\n<span id=\"Generating_a_Template_Deployment_Plan_using_weblogic.PlanGenerator\"><h3>Generating a Template Deployment Plan using weblogic.PlanGenerator<\/h3><\/span>\n<p>* Syntax:<\/p>\n<pre lang=\"bash\">\r\njava weblogic.PlanGenerator -root install_root category\r\n<\/pre>\n<p>&#8211; install_root: fully qualified name of the root directory for the application and plan.<br \/>\n&#8211; category: defaults to <strong>-dependencies<\/strong>.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\njava weblogic.PlanGenerator -root c:\\exportapps\\myApplication\r\n<\/pre>\n<span id=\"Customizing_the_Deployment_Plan_Using_the_Administration_Console\"><h3>Customizing the Deployment Plan Using the Administration Console<\/h3><\/span>\n<p>* Install the Exported Application and Template Deployment Plan.<br \/>\n* Add Variables for Selected Tuning Properties.<br \/>\n* Retrieve the Customized Deployment Plan.<\/p>\n<span id=\"Manually_Customizing_the_Deployment_Plan\"><h3>Manually Customizing the Deployment Plan<\/h3><\/span>\n<p>* Following two operations can <strong>not<\/strong> be done in Admin Console:<br \/>\n&#8211; Remove an existing deployment plan variable.<br \/>\n&#8211; Assign a null value to a generated variable in the plan to require Admin input.<\/p>\n<pre lang=\"xml\">\r\n...\r\n  <variable-definition>\r\n    <variable>\r\n      <name>SessionDescriptor_InvalidationIntervalSecs_11029744771850<\/name>\r\n      <value>80<\/value>\r\n    <\/variable>\r\n  <\/variable-definition>\r\n...\r\n\r\nto:\r\n\r\n...\r\n  <variable-definition>\r\n    <variable>\r\n      <name>SessionDescriptor_InvalidationIntervalSecs_11029744771850<\/name>\r\n      <value xsi:nil=\"true\"><\/value>\r\n    <\/variable>\r\n  <\/variable-definition>\r\n...\r\n<\/pre>\n<span id=\"Validating_the_Exported_Deployment_Configuration\"><h3>Validating the Exported Deployment Configuration<\/h3><\/span>\n<p>* On the Summary of Deployments page, select the name of the application or module that you installed.<br \/>\n* Select the Deployment Plan > Dependencies tab.<br \/>\n* Verify that the dependencies configured for the deployed module are valid for the selected target servers.<\/p>\n<p>[mv_include id=&#8221;3569&#8243;]<br \/>\n* <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E17904_01\/web.1111\/e13702\/export.htm\">Exporting an Application for Deployment to New Environments<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose * To expose the external resources requirements of the application, e.g. JNDI names, as null variables in a deployment plan. * To expose additional configurable properties, such as tuning parameters (e.g. EJB caching), as variables in a deployment plan. &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=3593\">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-3593","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-VX","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3593","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=3593"}],"version-history":[{"count":5,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3593\/revisions"}],"predecessor-version":[{"id":3656,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3593\/revisions\/3656"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}