0 Replies Latest reply on May 9, 2008 12:07 PM by Solerous

    Sending objects to messaging service

    Solerous Level 1
      I am using messaging to transfer data to and from the server. I can send information from java and read it in flex by mapping to actionscript objects:

      private function messageHandler(message:IMessage):void {
      var array:Array = message.body as Array;
      foo_Java = array[0] as Java_Foo_Object;
      }

      But how about vice versa using a producer to send a message? How would I send an array to the java messaging service? And how do I read this in java or map it to java classes?

      private function sendReport():void{
      var message:IMessage = new AsyncMessage();
      // ??? What to do here
      producer.send(message);
      }