raj
raj

Reputation: 103

how to set class mediator value and pass it to esb

I used class mediator via developer studio. How to pass value from class to esb. That means from developer studio(eclipse) to Esb. How to pass the value ? Anyone help me ? provide me the link...

Upvotes: 4

Views: 393

Answers (1)

Mari_Yaguchi
Mari_Yaguchi

Reputation: 457

CMIIW, but maybe you are looking for something like this. Write this in your class to set the property name and value,

context.setProperty("property_name", property_value);

This way you can access the property from wso2 proxy or sequence. To access the property you can do this :

 <property name="property_name" expression="get-property('property_name')"/>

Hope this is what you mean :)

Thanks,

Upvotes: 2

Related Questions