Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set a registry entry to use in inbound endpoint?

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

like image 477
Julien Gecko Avatar asked Sep 23 '16 08:09

Julien Gecko


1 Answers

The second parameter definition you tried is obsolete now. First one is the correct way to specify inbound endpoint as a registry entry.

Declaring a property in registry can be done using this guide and this.

Further, it seems you are using an older ESB version. It is recommended to use latest ESB version which is 5.0.0.

Hope this helps.

like image 98
Heshitha Hettihewa Avatar answered Dec 05 '22 07:12

Heshitha Hettihewa