1 Reply Latest reply on Jul 29, 2010 2:30 AM by Balakrishnan V

    How to use remoteobject with blazeDS?

    phamquochiep Level 1

      Hello evebody!

       

      I have this problem when i build test project use remoteObject and blazeDS.

       

      It always occurs "send fail" erro.

       

      I guess that is MessageBrokerServlet.

       

      How can i fix that?

       

      This is project:

      http://www.mediafire.com/?cd1zehprmc6lupg

       

       

      Thanks!

      hiephn@yahoo.com

        • 1. Re: How to use remoteobject with blazeDS?
          Balakrishnan V Level 3

          Hi

           

          I encountered the same problem when I started learning RemoteObject with BlazeDS.

           

          You need to use the following endpoint url : http://<your_url_goes_here>/messagebroker/amf

           

          The explanation is as follows

           

          The <blazeds>\tomcat\webapps\blazeds\web-inf\flex\ folder contains the following .xml - configuration files.

           

          <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
          <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint" />
          </channel-definition>
          This is a channel definition under the services-config.xml file. This defines that an endpoint url of the above mentioned form should be referred to the AMFEndpoint class. It also provides other channels like secure / polling AMF.
          Hope this helps,
          balakrishnan v