Try PubSub+

BytesXMLMessage data safety

lilyevskylilyevsky Member Posts: 6

I saw in the documentation the recommendation not to cache BytesXMLMessage objects, because they may be reused.
I am usually extracting the data from it using getBytes() method, and pass it down to the next layer of my processing.
Question: is it safe to pass that data array as is? Do I need to make a copy of it?

Tagged:

Answers

Sign In or Register to comment.