Search code examples
esbmule

How can I make a Dynamic Inbound Endpoint in Mule?


Is there any way to set Inbound Endpoint attributes based on data in an event?

This is my scenario: I receive messages from a JMS queue containing a path as payload, then I want to use a File Inbound Endpoint to read from the path that came in the message and process the resulting files. I know only outbound endpoints are supposed to be dynamic.

Any workaround to solve this??


Solution

  • If nothing else works, inject the path to a custom component and read the file in that component. Then you can return the file or what ever you want as a payload.