Tuesday, September 17, 2019

12c SOA - Use of Configuration plan

Introduction:
  • A configuration plan is an XML file which help you to modify environment-specific values, such as JDBC connection strings, host names of various servers, and etc. on SOA composite deployment time.
  • Practically, the configuration plan contains a set of search and replace rules, that help you to edit host names, JNDI Names, composite properties etc, for services exposed and references consumed in your SOA composite.
  • For each specific environment and composite, there should have one configuration plan.
Create Configuration plan:
Open JDeveloper⇾In the application pane, find your SOA project and right click on the composite.xml⇾Click on Generate Config Plan.
Now that you have created the configuration plan, it should appear under the Resources folder.



Modify Configuration Plan:
Now modify the created config plan as per the environment to be deployed.

Below you will find sections that edit a service exposed and service consumed:
Serviced exposed:
      <service name="dvmtestbpelprocess_client_ep">
         <binding type="ws">
            <attribute name="port">  <replace>http://xmlns.oracle.com/SOAApplication/DVMTestProject/DVMTestBPELProcess#wsdl.endpoint(dvmtestbpelprocess_client_ep/DVMTestBPELProcess_pt)</replace>
            </attribute>
         </binding>
      </service>
Service Consumed:
      <reference name="ProviderEMPService">
         <!--Add search and replace rules for the binding properties-->
         <binding type="ws">
            <attribute name="port">
<replace>http://xmlns.oracle.com/SOAApplication/EMPProviderProject/ProviderBPELProcess#wsdl.endpoint(providerbpelprocess_client_ep/ProviderBPELProcess_pt)</replace>
            </attribute>
            <attribute name="location">
               <replace>http://hostname:8001/soa-infra/services/POC/EMPProviderProject/providerbpelprocess_client_ep?WSDL</replace>
            </attribute>
            <property name="weblogic.wsee.wsat.transaction.flowOption">
               <replace>WSDLDriven</replace>
            </property>
         </binding>
      </reference>

You can modify the <replace> tag values with the desired values and those will be applied to your composite as post deploy changes.

Here is another important section at last part of the config plan where you can search and replace the host-names and different attributes.

   <wsdlAndSchema name="Schemas/Employee.xsd|WSDLs/DVMTestBPELProcess.wsdl">
       <searchReplace>
         <search>http://DEV_HostName</search>
         <replace>http://QA_HostName</replace>
      </searchReplace>
      <searchReplace>
         <search>...</search>
         <replace>...</replace>
      </searchReplace>
   </wsdlAndSchema>

Deploy the config plan:
There are several ways you can deploy the config plan while deploying the composites to server:
  1. Deploy the config plan from EM console
  2. Deploy from Jdeveloper connecting the integrated app server
  3. Deploy using WLST or ant script files.
Click here composite-deploy-with-config-plan  to deploy config plan file using WLST

No comments:

Post a Comment

Featured Post

11g to 12c OSB projects migration points

1. Export 11g OSB code and import in 12c Jdeveloper. Steps to import OSB project in Jdeveloper:   File⇾Import⇾Service Bus Resources⇾ Se...