I am trying to use apache camel to route file content to activemq queue. I use camel to poll xml files from a specific folder then send its content to queue. My problem is I want to send the content to dynamic queue name based on the content value. For example :
The xml file content is
Then it means that this one need to send to queue named "queue1". How can I use the "queue1" dynamic value to the "to:" parameter in camel route spring dsl?