Setting and Getting Preference Properties:
Preference Properties :
from front end, not while deploying the sar.
For eg Datasource Value of jca file can be modified using these properties from front end. In composite.xml ,
where the component name tag is there , add the following tag for bpel preference.
<property name="bpel.preference.name">value</property>
Eg:
<component name="BPELProcess1"> <implementation.bpel src="BPELProcess1.bpel"/>
<property name="bpel.preference.name">value</property> </component>Object 1
from front end, not while deploying the sar.
For eg Datasource Value of jca file can be modified using these properties from front end. In composite.xml ,
where the component name tag is there , add the following tag for bpel preference.
<property name="bpel.preference.name">value</property>
Eg:
<component name="BPELProcess1"> <implementation.bpel src="BPELProcess1.bpel"/>
<property name="bpel.preference.name">value</property> </component>Object 1
This can be used to make any run time changes in parameters
Now we can use the function ora:getPreference(“name”)in our bpel process to retrieve the value of the preference.
Now we can use the function ora:getPreference(“name”)in our bpel process to retrieve the value of the preference.
Watch the naming convention. It expects it to start with “bpel.preference”.
Also please check the ora:getPreference should contain “” or will throw xpath invalid error
Setting the Property value from emconsole as a configuration change:
On the left go to :
Also please check the ora:getPreference should contain “” or will throw xpath invalid error
Setting the Property value from emconsole as a configuration change:
On the left go to :
-
Farm_soa_domain > Weblogic Domain > soa_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 our preference and click apply.
-
After clicking ‘Apply’ click ‘Return’.
-
To persist the new value of the preference after server restart
-
Go to the ‘Operations’ tab and click on the ‘save’ operation. Click ‘Invoke’ and
‘Return’
If you now restart the service the changed value of your preference with still be there.
No comments:
Post a Comment