Tuesday, July 6, 2010

Modifying BPEL preferences in 11G as compared to 10G

BPEL preferences help a lot in setting dynamic values in BPEL processes. The values for these preferences can be changed during deployment to different servers (DEV,QA, PROD) or post-deployment (where they take effect at runtime without having to redeploy code or restart servers). The way preference values can be modified in SOA 10G is different from the way it can be done in 11G . In this post we will take a look at this difference.

In BPEL 10G the preferences were added to bpel process by adding them into the bpel.xml file. Later these could be changed from BPEL console as shown below :
<preferences>
<property name="SOURCE_CONTACT">XXXXX</property>
<property name="TARGET_CONTACT">XXXXX</property>
</preferences>


In BPEL 11G the preferences are added to bpel process by adding them into the composite.xml file. Later these can be changed by changing their value from EM console as shown below:
<component name="customBPELProcess">
<implementation.bpel src="CustomBPELProcess.bpel"/>
<property name="bpel.preference.customPref">CustomPrefValue</property>
</component>
Open EM Console from http://adminserverhost:port/em

On the left hand navigation bar go to :

Farm_xxx_domain > Weblogic Domain > xxx_domain > right mouseclick and select ‘System MBean Browser’.

Navigate to Application Defined MBeans > oracle.soa.config > Server : soa_server1 > SCAComposite > your_project > SCAComposite.SCAComponent > your bpel_process. Select the Attribute ‘Properties’.

Change the value of your preference and click apply.Run the bpel again to see the new value get used in the process.



No comments:

Post a Comment