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

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

Django Celery - running scheduled tasks -

perl - 'Unquoted string ".." may clash with future reserved word' but only when package is used -