8 Replies Latest reply on Jun 19, 2006 3:49 PM by Elias Ross

    TextMessages returned as payloadasbytearray

    DENNIS CREEDEN Newbie

      Hello,

      I am using:
      JBoss_4_0_4_GA
      JBoss Messaging 1.0.1.CR2

      Everything is on one JBoss server.

      I have an EJB that is virtually identical to the messaging stateless EJB in the examples that come with JBoss Messaging. The EJB has a sendRequest method that puts a TextMessage in a queue named requestQueue and a getResponse method that retrieves TextMessages from a queue named responseQueue.

      A MDB is listening on the requestQueue queue. It processes the request and puts the results into a TextMessage and sends it to the responseQueue queue.

      When the EJB gets the TextMessage from the responseQueue the payload is an empty string but the message seems to be in the payloadasbytearray.

      I'm guessing this has something to do with serialization.

      Any help or direction would be greatly appreciated.

      Thanks,

      Dennis