Hi John, I wonder if you could be interested in "messageConverter", e.g: https://github.com/apache/camel/blob/master/components/camel-jms/src/test/java/org/apache/camel/component/jms/ConsumeMessageConverterTest.java
Regards, Alex On Tue, May 29, 2018 at 7:08 PM, John fansler <[email protected]> wrote: > As of ActiveMQ version 5.12, you have to whitelist the objects used by any > message that is of type ObjectMessage. I believe the default in Camel is to > handle the serialization when producing and consuming from message queues > which results in an ObjectMessages. > > I know we can explicitly call “marshal()” before producing a message and > “unmarshal()” after consuming a message to avoid the ObjectMessage type. > > Is there a cleaner way to produce and consume from ActiveMQ that does not > require explicit marshal/unmarshall calls around every message queue? > > We are currently using camel version 18.3. > > Thanks, > > -john > > > >
