How to dynamically route message in WSO2 ESB based on XML configuration file
I am trying to route a message based on information in a XML snippet stored as a local entry (key=mapping_id_ep_v1.xml). The id used to look-up the correct endpoint and it is part of the message body. This is the XML snippet used to map id's to endpoints: <mappings> <mapping id="ep_1">http://localhost:8280/services/ep_1</mapping> <mapping id="ep_2">http://localhost:8280/services/ep_2</mapping> <mapping id="ep_3">http://localhost:8280/services/ep_3</mapping> <mappings> I retrieve the id from the body to look-up the endpoint using the following statement: <property name="LOOK-UP" expression="/