How to set value for antInclude attribute from exchange property in apache camel
问题 I am adding a property to exchange at runtime from the request. exchange.setProperty("filePattern", String.format("*%s*", routeConfig.getFilePattern())) Later, I am trying use the property for antInclude attribute as below file:source?readLock=changed&antInclude=${exchangeProperty.filePattern} Above code is not working, route created as below during runtime in log file://source?antInclude=%24%7BexchangeProperty.filePattern%7D&readLock=changed 回答1: Aha! I see what you are trying to do here.