{"id":1642,"date":"2010-07-01T16:39:24","date_gmt":"2010-07-01T21:39:24","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=1642"},"modified":"2010-08-19T13:59:23","modified_gmt":"2010-08-19T18:59:23","slug":"oracle-bpel-deployment-plan","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=1642","title":{"rendered":"Oracle BPEL Deployment Plan"},"content":{"rendered":"<span id=\"Overview\"><h2>Overview<\/h2><\/span>\n<p>* Since 10.1.3.4<\/p>\n<span id=\"Add_Deployment_Plan_Ant_Tasks\"><h2>Add Deployment Plan Ant Tasks<\/h2><\/span>\n<p>* Add the following Ant Tasks to &#8216;build.xml&#8217; file.<\/p>\n<pre lang=\"xml\">\r\n    <!--=============================-->\r\n    <!-- Deployment Plan Tasks       -->\r\n    <!--=============================-->\r\n    <!-- Default to planfile_dev.xml -->\r\n    <property name=\"planfile\" value=\"planfile_dev.xml\"\/>\r\n    \r\n    <!-- Generate Plan From Project -->\r\n    <target name=\"generate_plan_from_project\">\r\n      <generateplan \r\n            planfile=\"${process.dir}\/${planfile}\"\r\n            verbose=\"true\"\r\n            overwrite=\"true\"\r\n            descfile=\"${process.dir}\/bpel\/bpel.xml\"\/>\r\n    <\/target>\r\n\r\n    <!-- Generate Plan From Suitcase -->\r\n    <target name=\"generate_plan_from_suitcase\">\r\n      <generateplan \r\n            planfile=\"${process.dir}\/${planfile}\"\r\n            verbose=\"true\"\r\n            overwrite=\"true\"\r\n            suitecase=\"${process.dir}\/output\/bpel_${BPELSuitcase.BPELProcess(id)}_${rev}.jar\"\/>\r\n    <\/target>\r\n\r\n    <!-- Validate Suitcase -->\r\n    <target name=\"validate_plan\">\r\n      <validateplan \r\n           planfile=\"${process.dir}\/${planfile}\"\r\n           verbose=\"true\" \r\n           overwrite=\"true\"\r\n           suitecase=\"${process.dir}\/output\/bpel_${BPELSuitcase.BPELProcess(id)}_${rev}.jar\"\r\n           reportfile=\"${process.dir}\/output\/validate_${planfile}.txt\"\/>\r\n    <\/target>\r\n\r\n    <!-- Attach Plan to Suitcase -->\r\n    <target name=\"attach_plan\">\r\n      <attachplan \r\n           planfile=\"${process.dir}\/${planfile}\"\r\n           verbose=\"true\"\r\n           overwrite=\"true\"\r\n           suitecase=\"${process.dir}\/output\/bpel_${BPELSuitcase.BPELProcess(id)}_${rev}.jar\"\/>\r\n    <\/target>\r\n\r\n    <!-- Extract Plan from Suitcase -->\r\n    <target name=\"extract_plan\">\r\n      <extractplan \r\n        planfile=\"${process.dir}\/${planfile}\"\r\n           verbose=\"true\"\r\n           overwrite=\"true\"\r\n           suitecase=\"${process.dir}\/output\/bpel_${BPELSuitcase.BPELProcess(id)}_${rev}.jar\"\/>\r\n    <\/target>\r\n<\/pre>\n<span id=\"Create_a_Deployment_Template\"><h2>Create a Deployment Template<\/h2><\/span>\n<p>* Run ant from BPEL developer prompt:<br \/>\nant -Dplanfile=planfile.xml generate_plan_from_project<\/p>\n<span id=\"Create_a_Deployment_Plan\"><h2>Create a Deployment Plan<\/h2><\/span>\n<p>* Save the created &#8216;planfile.xml&#8217; for a particular environment such as &#8216;planfile_test.xml&#8217;.<br \/>\n* Edit saved file for needed modifications.<br \/>\n&#8211; Use &#8216;searchReplace&#8217; to replace strings.<br \/>\n* For example:<\/p>\n<pre lang=\"xml\">\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!--BPELDeploymentPlan for a suitcase, the file is re usable across suitcases-->\r\n<BPELDeplymentPlan xmlns=\"http:\/\/schemas.oracle.com\/bpel\/deployplan\"\r\n xmlns:jca=\"http:\/\/xmlns.oracle.com\/pcbpel\/wsdl\/jca\/\">\r\n  <!-- BPELProcess tag indicates the rules apply to a specific process or all\r\n processes in the suitcase.\r\n       A '*' indicates all processes. -->\r\n\r\n  <BPELProcess id=\"Process1|Process2|Process3\">\r\n    <!-- this section applies to the configurations in bpel.xml file -->\r\n\r\n    <configurations>\r\n      <!-- a '*' in name indicates all properties -->\r\n      <property name=\"defaultInput\">\r\n        <!-- Use this section to provide a search and replace string -->\r\n        <searchReplace>\r\n          <search>http:\/\/my.globalcompany.com:9700<\/search>\r\n          <replace>http:\/\/my.oracle.com:1234<\/replace>\r\n        <\/searchReplace>\r\n        <searchReplace>\r\n          <search>\/autoloan\/mybank<\/search>\r\n          <replace>\/allloans\/\/boa\/<\/replace>\r\n        <\/searchReplace>\r\n      <\/property>\r\n      <property name=\"property4\">\r\n        <!-- Use this to replace the value of the property4 -->\r\n        <replace>![CDATA[This demo showcases the integration of synchronous and\r\n        asychronous services into an end-to-end business process. This sample\r\n        application.  ]]\r\n        <\/replace>\r\n      <\/property>\r\n    <\/configurations>\r\n\r\n    <partnerLinkBindings>\r\n        <!-- this section applies to the partnerlink bindings in bpel.xml file.\r\n             Give '*' to apply for all partner link bindings.-->\r\n        <partnerLinkBinding name=\"LoanService1\">\r\n        <property name=\"*\">\r\n          <!-- Use this section to provide a search and replace string -->\r\n          <searchReplace>\r\n            <search>http:\/\/mydevserver:9700<\/search>\r\n            <replace>http:\/\/mytestserver:9500<\/replace>\r\n          <\/searchReplace>\r\n        <\/property>\r\n      <\/partnerLinkBinding>\r\n      <partnerLinkBinding name=\"AutoLoanService\">\r\n        <!-- a '*' in name indicates all properties -->\r\n        <property name=\"wsdlRuntimeLocation\">\r\n          <!-- in this case we are providing a new value for the property,\r\n               there is no search and replace -->\r\n          <replace>\r\n            <value>http:\/\/autoloan_test_server:1234\/AutoLoan?wsdl<\/value>\r\n          <\/replace>\r\n        <\/property>\r\n      <\/partnerLinkBinding>\r\n      <!-- Note: we gave specific search and replace rules for some partner\r\n      link bindings and this is the rule for all other partner link bindings-->\r\n      <partnerLinkBinding name=\"*\">\r\n        <property name=\"*\">\r\n          <!-- Use this section to provide a search and replace string -->\r\n          <searchReplace>\r\n            <search>9700<\/search>\r\n            <replace>9500<\/replace>\r\n          <\/searchReplace>\r\n        <\/property>\r\n      <\/partnerLinkBinding>\r\n    <\/partnerLinkBindings>\r\n  <\/BPELProcess>\r\n\r\n  <!-- This section applies to all wsdl and xsd files in the suitecase, give\r\n      specific names separated by '|' is need specific replacement-->\r\n\r\n  <wsdlAndSchema name=\"FlatStructureOutbound.wsdl|Loademo.xsd\">\r\n    <!-- Remember to add xmlns:jca=\"http:\/\/xmlns.oracle.com\/pcbpel\/wsdl\/jca\/\"\r\n    in BPELDeploymentPlan if you want to replace jca properties as shown below.\r\n    -->\r\n\r\n    <jca:property name=\"PhysicalDirectory\">\r\n    <searchReplace>\r\n        <search>\/tmp\/dev\/inbound<\/search>\r\n        <replace>\/tmp\/test\/inbound<\/replace>\r\n      <\/searchReplace>\r\n    <\/jca:property>\r\n    <jca:property name=\"FileNamingConvention\">\r\n      <searchReplace>\r\n        <search>.txt<\/search>\r\n        <replace>.doc<\/replace>\r\n      <\/searchReplace>\r\n    <\/jca:property>\r\n\r\n    <!-- Note: any searchReplace should always be added after jca properties\r\n         section. -->\r\n    <searchReplace>\r\n      <search>http:\/\/mydevserver:9700<\/search>\r\n      <replace>http:\/\/mytestserver:9500<\/replace>\r\n    <\/searchReplace>\r\n\r\n    <searchReplace>\r\n      <search>dev.xsd<\/search>\r\n      <replace>test.xsd<\/replace>\r\n    <\/searchReplace>\r\n  <\/wsdlAndSchema>\r\n<\/BPELDeplymentPlan>\r\n<\/pre>\n<span id=\"Validate_Plan\"><h2>Validate Plan<\/h2><\/span>\n<p>* Run ant from BPEL developer prompt:<br \/>\nant -Dplanfile=planfile_test.xml validate_plan<br \/>\n* View validate_${planfile}.txt<\/p>\n<span id=\"Attach_Deployment_Plan_to_a_Suitcase\"><h2>Attach Deployment Plan to a Suitcase<\/h2><\/span>\n<p>* Run ant from BPEL developer prompt:<br \/>\nant -Dplanfile=planfile_test.xml attach_plan<br \/>\n* The task will generate a file named &#8216;bpeldeployplan.xml&#8217; in the BPEL Suitcase using &#8216;planfile_test.xml&#8217; plan.<\/p>\n<span id=\"Extract_Deployment_Plan_from_a_Suitcase\"><h2>Extract Deployment Plan from a Suitcase<\/h2><\/span>\n<p>* Run ant from BPEL developer prompt:<br \/>\nant -Dplanfile=planfile_test.xml extract_plan<\/p>\n<span id=\"Modify_Ant_to_Use_Deployment_Plan\"><h2>Modify Ant to Use Deployment Plan<\/h2><\/span>\n<p>* Add &#8216;attach_plan&#8217; task as a dependency to the &#8216;deploy&#8217; task<\/p>\n<pre lang=\"xml\">\r\n<target name=\"process-deploy\"\r\n          depends=\"validateTask, compile, attach_plan, deployProcess,\r\ndeployTaskForm, deployDecisionServices\" \/><\/pre>\n<p>* Run ant from BPEL developer prompt:<br \/>\nant -Dplanfile=planfile_test.xml deploy<\/p>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E12524_01\/relnotes.1013\/e12523\/bpelrn.htm#BABCEBAA\">http:\/\/download.oracle.com\/docs\/cd\/E12524_01\/relnotes.1013\/e12523\/bpelrn.htm#BABCEBAA<\/a><br \/>\n* <a href=\"http:\/\/blogs.oracle.com\/reynolds\/2008\/11\/bpel_deployment_framework.html\">http:\/\/blogs.oracle.com\/reynolds\/2008\/11\/bpel_deployment_framework.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview * Since 10.1.3.4 Add Deployment Plan Ant Tasks * Add the following Ant Tasks to &#8216;build.xml&#8217; file. Create a Deployment Template * Run ant from BPEL developer prompt: ant -Dplanfile=planfile.xml generate_plan_from_project Create a Deployment Plan * Save the created &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=1642\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","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":[72,69,35],"tags":[],"class_list":["post-1642","post","type-post","status-publish","format-standard","hentry","category-bpel","category-oc4j","category-oracle"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-qu","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1642","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=1642"}],"version-history":[{"count":5,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1642\/revisions"}],"predecessor-version":[{"id":1766,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1642\/revisions\/1766"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}