简体   繁体   中英

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...

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,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM