Database Reference
In-Depth Information
xmlns="http://schemas.oracle.com/soa/configplan">
<composite name="*">
<import>
<searchReplace>
<search>http://soa11gdev:8001</search>
<replace>http://soa11gtest:8001</replace>
</searchReplace>
</import>
<reference name="*">
<binding type="ws">
<attribute name="location">
<searchReplace>
<search>http://soa11gdev:8001</search>
<replace>http://soa11gtest:8001</replace>
</searchReplace>
</attribute>
</binding>
</reference>
</composite>
</SOAConfigPlan>
The configuration plan replaces all references of
http://soa11gdev:8001
to the test server's equivalent
http://soa11gtest:8001
.
We finally deploy the Mediator project to the test environment attaching the con-
figuration plan that we just created:
cd %ORACLE_HOME/bin
ant -f ant-sca-deploy.xml deploy -Duser=$USERNAME -Dpassword=$PASSWORD -DserverURL=$SOAURL/soa-infra/deployer -DsarLocation=$CODE/HelloWorld_Mediator/deploy/sca_HelloWorld_Mediator_rev1.0.jar -Dpartition=default -Doverwrite=true -DforceDefault=true -Dconfigplan=/tmp/cfgplan_test.xml
By attaching the configuration plan, the code, which was originally developed to
reference development server specific URLs, is now deployed to the test server
referencing test specific URLs.