title: ActiveMQ to Apollo transition, Openwire to Stomp protocol configuration
body: <p>I'm trying to switch from ActiveMQ 5.6 to Apollo 1.5.
  I have two soft that are exchanging messages, using publish/subscribe on topics.</p>
  
  <ul>
  <li>The first one is c++ and use openwire with tcp</li>
  <li>The second one is Javascript and use stomp with websockets</li>
  </ul>
  
  <p>With ActiveMQ everything worked fine, and the messages I sent could be read and write on both softs, and I didn't changed the clients since.</p>
  
  <p>Now, I send messages from the c++ soft (using openwire), and try to read them with the JS soft, and I get errors. In fact I receive message with header content-type: "protocol/openwire", but I expect stomp.</p>
  
  <p>this is how I configured apollo.xml connector section :</p>
  
  <pre><code>&lt;connector id="tcp" bind="tcp://0.0.0.0:61613"&gt;
      &lt;openwire max_inactivity_duration="-1" max_inactivity_duration_delay="-1" /&gt;
      &lt;stomp max_header_length="10000" die_delay="-1" /&gt;
  &lt;/connector&gt;
  &lt;connector id="ws" bind="tcp://0.0.0.0:61623"&gt;
      &lt;stomp max_header_length="10000" die_delay="-1" /&gt;
  &lt;/connector&gt;
  </code></pre>
  
  <p>I also tried with &lt;detect /> in tcp and ws connector, that is supposed to auto detect client protocol, but dosen't work either.</p>
  
  <p>Does someone can help me to figure this out ?</p>
  
  <p>Thank you,</p>
  
  <hr>
  
  <p>edit :</p>
  
  <p>I found out that I do receive stomp protocol messages, but they are very weirdly formated, and even contains non text char that make stomp.js fail to parse the message and correctly fill the message body.</p>
  
  <p>here are the same message received once from activemq openwire and then apollo openwire in with the same c++ publisher and js subscriber :</p>
  
  <p>activemq</p>
  
  <pre>
      "MESSAGE
      message-id:ID:myID-61443-1352999572576-0:0:0:0:0
      class:Message.PointToPoint
      destination:/topic/my-topic
      timestamp:1352999626186
      expires:0
      subscription:sub-0
      priority:4
  
      &lt;PointToPoint xmlns="Message" >&lt;SourceId>u_23&lt;/SourceId>&lt;TargetId>u_75&lt;/TargetId>&lt;/PointToPoint>"
  </pre>
  
  <p>apollo</p>
  
  <pre>
      "MESSAGE
      subscription:sub-0
      destination:
      content-length:331
      content-type:protocol/openwire
      message-id:xps-broker-291
  
      Eç{#ID:myID-61463-1352999939140-0:0emy-topicn{#ID:myID-61463-1352999939140-0:0; Å??&lt;PointToPoint xmlns="Message" >&lt;SourceId>u_23&lt;/SourceId>&lt;TargetId>u_75&lt;/TargetId>&lt;/PointToPoint>(class Message.PointToPoint
  "
  </pre>
  
  <p>Do you think it could be a problem in Apollo ?</p>