3 Replies Latest reply on Aug 30, 2007 6:50 AM by marklittle

    Sending objects through ESB

    sl4ve

      Some time ago I had a problem. I was trying to send an object using ObjectMessage class. When I tried to add object to the message by setObject method, sent a message to the queue and received it on listener I was unable to get that object out of message.

      org.jboss.soa.esb.message.Message couldn't be cast to ObjectMessage and I couldn't get my object back.

      Using message.getBody().get() also didn't result in getting the sent object.

      Could you give me any clue if I was doing something wrong?

        • 1. Re: Sending objects through ESB
          marklittle

          Sorry, not enough information. We did test that scenario at the time and subsequently. Our tests indicated that it did work. If you still feel it doesn't, the best thing to do would be to take one of the quickstarts and modify it to duplicate what you are seeing.

          • 2. Re: Sending objects through ESB
            sl4ve

            Could you tell me in which quickstarts you were trying to attach an object to a message? I remember that I was looking for such an example and couldn't find it.

            • 3. Re: Sending objects through ESB
              marklittle

              Sorry, can't remember at the moment. But if you check out the trunk and do a grep you should find them. Alternatively, just take one of the quickstarts and edit it yourself.