This discussion is archived
3 Replies Latest reply: Mar 6, 2013 5:07 PM by DeepakSOA RSS

setting system properties accessible from BPEL independent of ENV

DasN Newbie
Currently Being Moderated
I am implementing a BPEL Process in which I am referring to a folder in my local server.Is there any way where I can set some sytem properties such way that the folder path could be dynamically accessed independent of the server/environment.

Ex:-in dev environment I am referring to this location - 'aia/tmp/DCTM/Input'
in devtest environment I want it to refer to this location- 'tmp/DCTM/Input'
Can we have any generic settings for this requirement?

Regards,
Niva
  • 1. Re: setting system properties accessible from BPEL independent of ENV
    781423 Explorer
    Currently Being Moderated
    You can try using bpel preferences. You can change the values of these preferences @ runtime using the em console and the value changes dynamically without server restart.

    Ex:
    In composite.xml :
    <component name="sample">
    <implementation.bpel src="sample.bpel"/>
    <property name="bpel.preference.folderLoc">aia/tmp/DCTM/Input</property>
    <property name="bpel.preference.customProp">xyz</property>
    </component>

    and use ora:getPreference(folderLoc) to get it from within a BPEL process

    and to change the value from em :
    EM>Farm_soa_domain>weblogic domain>your_domain>soa_server1>right click menu>system Mbean browser>oracle.soa.config>server:soa_server1>SCAComposite>your project>SCAComposite.SCAComponent>processName>

    Click the properties attribute : you should see the folderLoc and customProp and be able to change those.

    Hope this helps.
  • 2. Re: setting system properties accessible from BPEL independent of ENV
    DeepakSOA Newbie
    Currently Being Moderated
    The property values set in one managed server are not reflected in other/second managed servers. Do we need to change the property value in individual managed servers?

    Also after the server restart, the values are reverted back to original values. Aren't these values persisted until they are redeployed?

    I did 'Apply' after changing the values and waited for some time, but they were not reflected in other managed servers.

    Thanks in advance
  • 3. Re: setting system properties accessible from BPEL independent of ENV
    DeepakSOA Newbie
    Currently Being Moderated
    Found the solution.
    After changing the property, click on 'Apply' and then click on 'Return'.
    Click on 'Operations' tab (next to 'Attributes' tab),
    and click on 'Save', then click on 'Invoke' button and you are all set.
    All values are persisted now and will also be replicated to other managed servers instances.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points