0 Replies Latest reply on Apr 8, 2002 2:32 AM by sainideepak

    how to read the message contents

    sainideepak

      Hi,

      i have create a subsriber. and i wrote the following lines to display the message that is recived

      TextMessage textmsg2 = (TextMessage)msg;
      System.out.println("Received : " +
      textmsg2.getText() )


      but what is displayed is something like this
      The message received isfiorano.jms.services.msg.def.FioranoTexttMessage@5bc6c8

      I want to display the actual message that was sent.
      Any ideas

      Thanx
      Deepak Saini