3 Replies Latest reply on Feb 2, 2011 10:24 AM by peteandrus

    MessageBroker is always null?

    peteandrus Level 1

      i have been trying to figure out Flex Messaging, or publishing a  message from a Java object that will be read via BlazeDS, by a Flex  component...

       

      i have Eclipse 3.5.2. I unpacked the blazeds.war and added:

       

      flex-messaging-core.jar

      flex-messaging-common.jar

       

      to my Eclipse project.

       

      I then cut and pasted the code from the blog i was reading:

       

      MessageBroker mg = MessageBroker.getMessageBroker(null);
              
               mg.routeMessageToService(msg, null);

       

      however, the MessageBroker object returned is always null.

       

      does anyone know how to remedy this?

       

      thanks!