There has been a lot of confusion on how to set the body object(s), and
I think that we should get the word out that the
'right' way of doing this is to use:
message.getBody().add(Body.DEFAULT_NAME, your object)
The thing I don't really understand is why getByteArray does not stream
all the objects into the ByteArray? I guess I don't really understand
why we have the "_content" in addition to it; taken from the BodyImpl class:
public BodyImpl()
{
_content = null;
_objects = new Hashtable<String, Object>();
}
Thx,
--Kurt