Hi

I have been doing a system where certain messages are received in activemq,
processed somehow (In particular I add my own custom headers) and then
forward them to another queue.

I noticed that my headers which had the format X-HEADER... were not
forwarded and finally I found that JmsBinding has a function that filter
headers so that only headers which form a valid Java identifier are
forwarded:

        protected boolean shouldOutputHeader(org.apache.camel.Message 
camelMessage,
String headerName,
                                                                                
 Object headerValue) {
                return headerValue != null && 
!getIgnoreJmsHeaders().contains(headerName)
                           && ObjectHelper.isJavaIdentifier(headerName);
        }

I wonder what is the rationale for this? I can imagine some reasons but I'd
rather ask to the list to find out

Regards
Carlos
-- 
View this message in context: 
http://www.nabble.com/Some-headers-are-not-forwarded-to-JMS-destinations-tp16763376s22882p16763376.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to