Saturday, August 01, 2009

SOA 11g: Preferences

As we used preferences in BPEL very often, we expeted to use this in 11g as well. But within the BPEL editor and in the SCA editor there is no button to apply preferences. the function ora:getPreference() is available, but were do we apply this preferences.

The solution is there and writtin in:

http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_app_deploydesc.htm#SOASE11121

Preferences can be set at composite level and these preferences are defined at particular levels; BPEL, Partnerlink.

To use BPEL properties defined the properties in composite.xml.

In the composite:

...
<property name="bpel.bpel.preference.myPreference">HelloThere</property>
</component>

In the BPEL file

ora:getPreference(myPreference)

5 comments:

Ketan said...

hi Marc,
I have one doubt. I am able to use the preference property in BPEL. But, is there way to see the value and change it from the weblogic composite page?
I was not able to find any place (similar to descriptor tab in 10.1.3.3) on the console which would allow me do this. There is one property tab present, but it does not show the new properties added in the composite.xml file

thanks

Lucas said...

Hi Marc, I have the same question as Ketan: presumably the values of the SCA properties can be set in the FMW Control. However, where do you do that? Thanks for clearing that one up.

iBizTrack Consulting said...

Hi Marc,
Even i got the same question. Without a provision to change this in the console means, any change in the preference property value requires deployment. And we use preference generally to externalize values so that they can be easily changed on the fly.

Thanks-
iBizTrack Consulting.
http://www.ibiztrack.com

Eric Elzinga said...

Check http://eelzinga.wordpress.com/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/ to see where you can change the value of the preferences. Still can be done in the console.

Quince said...

This didn't work for me until I used single quotes in the get function:
ora:getPreference('myPreference')

Post a Comment

Post a Comment