Question

I am calling a NMR endpoint which sets some headers for me. It is an InOut Pattern where while the response comes back one of the header set does not exists.

In Log statement I give &{headers} to print all the headers with their names. But one header which is set in the NMR endpoint(in a java class) does not exists.

Please help me out here to understand what is happening. At least help me to understand on what cases I will lose a header .

If I am trying to print a header which is not existing at all in a logger will I get null or nothing?

Service mix is 4.5.x and the camel is 2.6

Was it helpful?

Solution

Just like communicating with other routes when we call other routes/bundle. If the headers sent while calling them are removed(either due to setbody() or getOut().setBody() methods) the response will not have the header sent earlier.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top