hornetq/hornetq — pull request #1623 by AddictedCS (2014-04-30 13:40:00+00:00)
Title: HornetQTextMessage sets payload as SimpleString

When [HornetQTextMessage](https://github.com/hornetq/hornetq/blob/master/hornetq-jms-client/src/main/java/org/hornetq/jms/client/HornetQTextMessage.java) is created, method setText is used to set its payload. Internally it uses writeNullableSimpleString, when writing it to the buffer.

In case the message is sent to OutgoingVertxEventHandler with VertxMessageType set to TYPE_STRING we have to invoke readNullableSimpleString instead of readString, otherwise it will not be able to decode it properly, failing with an exception.