I'm a newbie to WSO2 and I'm searching how to declare a registry property in the ESB to use it as a parameter to an inbound endpoint.
I saw that I could use it like this:
<parameter key="conf:/repository/esb/esb-configurations/AdhesionSituations" name="transport.vfs.FileURI"/>
I also tried this:
<parameter key="synapse:get-property('AdhesionSituations') name="transport.vfs.FileURI"/>
But I can't find how to declare the property in the registry. I try to define a local entry, a metadata on a collection in the registry but no matter what, indbound endpoint can't find my property.
Help will be appreciated ^^
Julien
You can define a local entry in registry as below. Assume registry location is conf:/repository/esb/esb-configurations/
<localEntry xmlns="http://ws.apache.org/ns/synapse" key="AdhesionSituations">Value</localEntry>
Then you can use the property as below in the configuration.
<property name="AdhesionSituationsProperty" expression="get-property('registry', 'conf://repository/esb/esb-configurations/AdhesionSituations')" scope="default" type="STRING"/>