Reading properties from bpel.xml
You can define properties in bpel.xml file and then read these in the BPEL process using ora:getPreference("propname"). One of the adv being avoiding having any hard coded stuff in the bpel process.
Example - Define in bpel.xml
preferences
property name="sid"bpeldb/property
preferences
These may be read inside the bpel process:
String sidName= getPreference("sid");
2 Comments:
does it have to bpel.xml; is there a way to tie a configuration file to bpel.xml?
Configurations itself (like db properties etc) can be set in bpel.xml file. Thats why a separate file is not required. Depends what kind of conf are you interested in setting?
Post a Comment
<< Home