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

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

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