Reported on user forum
The byte vs Byte is likely more of a Artemis question how their
JMS client handle this.
For byte then Camel creates a javax.jms.BytesMessage and for the
other it creates a javax.jmx.ObjectMessage.
You can force what JMS message type Camel should use with the option
(see its docs)
You can also turn on TRACE logging and see if you see this logging message
LOG.trace("Optimised for Artemis: Reading from BytesMessage in
streaming mode directly into CachedOutputStream payload");
It smells that this optimized mode (
CAMEL-11931) somehow cause Artemis
to close the stream. (smells like a bug in Artemis).
We could maybe add an option to turn this optimized Artemis mode off.
You can also turn off mapJmsMessage then Camel does not extract