Friday, May 06, 2011

Using Preferences / Deployment Descriptors in 11g

About this post
In 10g most of us used Deployment Descriptors in bpel processes. In 11g those are still available but their implemenation and definition places changed due to composites and weblogic applicaiton server. This post talks about how to use and manage these preferences in 11g.

Step 1: Add preferences property to composite.xml


Open composite.xml in source mode

Add the property "bpel.preference.kalyanpref"

Take a look at the above property closely it has 3 sections 1) bpel 2) preference 3) Name of the preference.

When you access in bpel you would access like ora:getPreference('kalyanpref')

Following code snippet shows how you add this property in composite.xml

<component name="DemoPreferencesBPEL"version="1.1">
<implementation.bpel src="DemoPreferencesBPEL.bpel"/>
<property name="bpel.preference.kalyanpref">kalyan</property>
</component>


Step 2: Where to Access / Update this preference


Access to this preference is available on Descriptor tab in 10g, but in 11g it's available in MBean browser.

Go to Enterprise Manager (http://localhost:7001/em)

Navigate "Farm"->"Weblogic Domain"->Right Click On "Your SOA Domain"->"System MBean Browser"



In the MBean Browser Window click on "oracle.soa.config"->soa_server1->SCAComposite->Demo Preferences->SCAComposte.SCAComponent->DemoPreferencesBPEL


On the Right hand side click on "properties"




You can update the values here and click on Apply to take effect.