When moving text files over ActiveMQ you don't want to handle encoding et. al.
to be sure that the String i a TextMessages is handled correctly (from an
encoding perspective). Instead sending the content of the text files as pure
bytes messages seems to be much simpler.
Added to that this opens up for handling non-text based files as well, at least
up to some upper size. At some size StreamMessage seems to be appropriate even
though a more involved api.
Original issue reported on code.google.com by magnus.l...@gmail.com on 5 Nov 2012 at 11:54
Original issue reported on code.google.com by
magnus.l...@gmail.com
on 5 Nov 2012 at 11:54