Remsy
> Hi. I have a class mediator that sets a property as soon as a message comes 
> in, i.e.
>
> mc.setProperty("msgType", msgType);
>
> I need to use this property afterwards to determine the route of the message, 
> so I think a switch mediator would be appropiate. My question is, how can i 
> access this property in the declaration of the switch mediator ? I understand 
> that the message context api can be used using javascript mediator, is it 
> possible to combine this with the switch ?
>   
The XPath extension function get-property('msgType') would get the value 
for you.. so simply make your Switch mediator work on the XPath 
expression as "get-property('something')"

asankha

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

Reply via email to