Beruflich Dokumente
Kultur Dokumente
tusjain@yahoo.com
http://oracle-fusion-middlware.blogspot.com
While migrating from one environment to another various parameters changes in any
application. Any BPEL Process should also be treated as application in this regard. So how to
tackle this challenge. In BPEL Process Manager 10.1.3.4 concept of Deployment Plan is
introduced which essentially define a XML file (DeploymentPlan file) which can be named as
per the convenience. So, how to generate DeploymentPlan file!
Step 2: Now go to build.xml file in Resource folder & open it. In this file add following lines
Just before end of project tag (</project>).
Element Description
generateplan This option creates a deployment plan file for editing that includes all
partner links, configuration properties, and WSDL imports in the BPEL
process. The planfile attribute indicates the name to use for the
deployment plan file. You can create a plan from either of two sources.
o bpel.xml deployment descriptor file
Specify a value with the descfile attribute. For example,
descfile="${process.dir}/bpel/bpel.xml".
This source is for developers who want to generate a plan without
compiling the project. After development is complete, you copy the
deployment plan file to the build folder and create the JAR file.
o BPEL suitcase JAR file
Specify a value with the suitecase attribute. For example,
suitecase="${process.dir}/output/bpel_
ReadFromAndWriteToFile _vYYYY_MM_DD__XXXX.jar ".
This source is for administrators who do not want to review code.
Instead, you take the JAR file, generate a deployment plan file,
attach the file to the JAR file, and deploy it.
Note: The content of the deployment plan is the same with either source.
attachplan This option packages a deployment plan file with the suitcase JAR file.
The deployment plan file is automatically renamed to
bpeldeployplan.xml in the suitcase JAR file. If this file already exists in
the suitcase JAR file, it is overwritten with the new plan.
validatePlan This option validates the deployment plan and identifies all search and
replacement changes to be made on the server side during BPEL process
deployment. Use this option for debugging only. The reportfile attribute
indicates the file name in which the results of this test are written. For
example, reportfile="${process.dir}/output/debug.txt"
extractplan This option extracts the existing deployment plan packaged with the
suitcase JAR file for editing. If no plan file exists, this is the same as
creating a new file with generateplan.
Step 3: Provide values appropriate to your environment (the values provided above for target
name, planfile, descfile, reportfile, and suitecase are only examples). Save the changes.
Step 5: Move deploy (Default) from the Selected Targets section to the Available Targets
section and move the target name you entered in Step 2 (for this exercise generateplan1) from
the Available Targets section to the Selected Targets section. Click OK.
This operation can also be performed with the following ant syntax from the folder in which
build.xml is located:
This runs generateplan1 and creates a single deployment plan file in which you can modify
parameters.
This operation can also be performed with the following ant syntax from the folder in which
build.xml is located:
This packages the new deployment plan file with the BPEL suitcase JAR file. The file is
renamed to bpeldeployplan.xml. The suitcase JAR file is created in the output directory of the
BPEL process.
Note:
The attachplan command does not replace the old bpel.xml, WSDL, and XSD files with files
containing the new values. Replacement occurs only when the BPEL process is deployed in Step
10.
Step 9: Right-click on the build.xml file and select Run Ant. Move validateplan from the
Selected Targets section to the Available Targets section. Move all other to Available Targets.
Click OK.
This operation can also be performed with the following ant syntax from the folder in which
build.xml is located:
The Log window in JDeveloper shows if validation succeeded and depicts all search and
replacement commands to perform during BPEL process deployment. This information is also
written to the file specified with the reportfile attribute in the build.xml file in Step 2
(debug.txt). Review this information to ensure that every thing is correct.
Step 10: Right-click on the build.xml file and select Run Ant. Move deploy (Default) from the
Selected Targets section to the Available Targets section. Click OK.
The files in the BPEL suitcase JAR file are replaced with files that include the URLs and
properties appropriate to the next environment.
ReadFromAndWriteT
oFile.zip
The Process: ReadFromAndWriteToFile