Hi friends,
When we do code movement from one environment to other then we need some modification in code with respect to url's,database connections etc.
We implement adapters ,web services using endpoint uri and jndi to develop application but these are different for each environment such as DEV,SIT,PROD etc.
To make this happen smoothly we create deployment plan for each environment and use it while deploying our composite.
Use the below steps in Jdeveloper to generate it.
1) Right click on the composite.xml file and select Generate Config Plan.
it will generate pop up with file name and click ok.
2) You can change all necessary fields accordingly.
e.g. Changing dev endpoint uri to test use below search and replace and do as per requirement.
<!--Add search and replace rules for the import section of a composite
Example:
<searchReplace>
<search>JNDI_DEV</search>
<replace>JNDI_TEST</replace>
<searchReplace>
<searchReplace>
<search>URI_DEV</search>
<replace>URI_TEST</replace>
<searchReplace>-->
3) use this configuration plan file while deploying .sar in console.
When we do code movement from one environment to other then we need some modification in code with respect to url's,database connections etc.
We implement adapters ,web services using endpoint uri and jndi to develop application but these are different for each environment such as DEV,SIT,PROD etc.
To make this happen smoothly we create deployment plan for each environment and use it while deploying our composite.
Use the below steps in Jdeveloper to generate it.
1) Right click on the composite.xml file and select Generate Config Plan.
it will generate pop up with file name and click ok.
2) You can change all necessary fields accordingly.
e.g. Changing dev endpoint uri to test use below search and replace and do as per requirement.
<!--Add search and replace rules for the import section of a composite
Example:
<searchReplace>
<search>JNDI_DEV</search>
<replace>JNDI_TEST</replace>
<searchReplace>
<searchReplace>
<search>URI_DEV</search>
<replace>URI_TEST</replace>
<searchReplace>-->
3) use this configuration plan file while deploying .sar in console.