Thanks Quinn, I had looked at jmsKeyFormatStrategy, and came to the same conclusion.
I guess I have to modify my routes, like you say. -----Original Message----- From: Quinn Stevenson [mailto:qu...@pronoia-solutions.com] Sent: 12 February 2018 17:20 To: email@example.com Subject: Re: JMS: override Camel header type conversions? Sorry - ignore that. That feature is used to customize the mapping of the key names - not the values. The only way I can think of right off hand is to add you’re own bean that manipulates the header values before you send them. > On Feb 12, 2018, at 10:14 AM, Quinn Stevenson <qu...@pronoia-solutions.com> > wrote: > > You can provide your own implementation using the jmsKeyFormatStrategy URI > Option. > > > >> On Feb 12, 2018, at 8:34 AM, Probert, Matt <matt.prob...@metoffice.gov.uk> >> wrote: >> >> When messages are produced to ActiveMQ, Camel JmsBinding converts >> java.util.Date message headers to string via Date.toString(). >> >> I want to override the conversion, to give IS0 8601 strings. >> >> Is there a way to inject a custom JmsBinding to do it? Or some other >> standard way? I don't want to modify existing route definitions, if possible. >> >> I'm using the camel-activemq component, Camel 2.14.1, ActiveMQ 5.7.0. Routes >> are defined in the spring XML DSL. >> Cheers, >> Matt >