1 Reply Latest reply on Nov 19, 2001 7:46 PM by dgantenbein

    sending custom object.

    keithcsl

      Hi

      I am currently working on a system that's got an existing Message object. When incorporating JMS, I do not want to breakdown this Message into JMS properties for sending/receiving.

      Since the setObjectProperty() does not allow me to put my Message object in the message, what is an alternative solution?

      I can de/serialise the object during receive/send in byte[] format. Is this the only solution?

      Thanks!
      Keith

        • 1. Re: sending custom object.
          dgantenbein

          Hi -

          We can send custom objects need to do the following...

          ObjectMessage message = _session.createObjectMessage();
          message.setObject(data);

          Therefore, use setObject not setObjectProperty.

          Good luck...
          Dorothy