title: Using bytemessage instead of objectMessage in JMS
body: <p>I am using JMS in my archtiecure in many ways.</p>
  
  <p>Latency and performance are very big factor in our architecure.</p>
  
  <p>Ive read that using jms with ObjectMessage in order to pass whole java object within the message takes lots of performances. </p>
  
  <p>Alternative solution is converting to json,protobuff and having the message being sent as a bytemessage/text message.</p>
  
  <p>Could you please make this clear for me:</p>
  
  <ol>
  <li><p>in case I choose  json. after converting from String to json should I send the message<br>
    as test or as ByteArray? (any difference?)</p></li>
  <li><p>Is the the total time of converting String to json from the sender side and<br>
  vice versa on the consumer side will be less/more then just sending ObjectMessage?</p></li>
  </ol>
  
  <p>thanks,
  ray. </p>