apache camel - Why we are not able to use getOut() of exchange in case of changing filename? -
Why can not we use getOut: Message-Exchange to change this code Are you Camel file name using Apache:
string origFileName = (string) exchange.getIn (). GetHeader (exchange. FILE_NAME_CONSUMED); Println (origFileName); . Exchange.getIn () removeHeader (Exchange.OVERRULE_FILE_NAME); Exchange.getIn () setHeader (Exchange.FILE_NAME, "newFileName.xml") .;
Check out this FAQ which tells you to use them vs. and you How should
Comments
Post a Comment