Thank. Eventually I sorted it out: 1. Used some JS to get the first folder from the CamelFileName header (lounge/temperature) to get lounge 2. Used recipient list to make up the right uri for the topic dynamically.
It isn't pretty, but it works and this way if I want to publish the data to a couple of topics I only need to add them into the list. -- View this message in context: http://camel.465427.n5.nabble.com/Get-last-file-folder-in-header-tp5728048p5728060.html Sent from the Camel - Users mailing list archive at Nabble.com.