Asankha C. Perera wrote:
> Hi Remsy
>> How do I set a property called "ID" in a message context so that I 
>> can read it from a proxy outside its environment ?
>>  
>> For example, I have this java code, part of a custom database write 
>> mediator:
>>
>> mc.setProperty("id",  id ); 
>>
>> if I tried to get it in another mediator inside my local 
>> environment, I can get it like this:
>>
>>  int id = (Integer) mc.getProperty("id");
>>
>> now, i need to call a remote proxy, so it throws errros because it 
>> doesn't exist (mc properties can be retrieved locally).
>>
>> How can I achieve this ? by tinkering the soap message itself ?
>>
> MC properties will not propagate with a message.. what you should use 
> are SOAP headers (if the message is SOAP) or transport headers
You could set soap headers with the Header mediator [1] while you can 
use the property mediator [2] with transport scope to set any transport 
headers.

[1] - 
http://wso2.org/project/esb/java/1.7.1/docs/ESB_Configuration_Language.html#header
[2] - 
http://wso2.org/project/esb/java/1.7.1/docs/ESB_Configuration_Language.html#property

Thanks,
Ruwan
>
> asankha
> ------------------------------------------------------------------------
>
> _______________________________________________
> Esb-java-user mailing list
> [email protected]
> http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>   


_______________________________________________
Esb-java-user mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user

Reply via email to