1 Reply Latest reply on Apr 19, 2009 2:07 PM by Steve Howard, ACP

    Flex application setup using RemoteObject

      Hi,

       

         I have been learning flex for some time and now wanna make server side integration. I have to use Remote object and make RPC calls for my java apis. Can someone please send me some link/reference with complete integration details

      e.g.

      1. required compiler arguments

      2. details regarding config files in WEB-INF/flex.

      etc.

       

      I followed the points mentioned at this site but am facing some issues. I am getting following error during an RPC call:

       

      1. failure: Channel.Security.Error error Error #2048: Security sandbox violation: http://localhost.tribalfusion.com:8400/login/SampleLogin.swf cannot load data from https://localhost.tribalfusion.com:8400/login/messagebroker/amfsecure. url: 'https://localhost.tribalfusion.com:8400/login/messagebroker/amfsecure'

       

      and sometimes I get error that "Cannot connect to swrvice userservicedest"

       

      Details of project:

       

      Files in WEB-INF/flex:

       

      messaging-config.xml, proxy-config.xml, remoting-config.xml, services-config.xml

       

      1. messaging-config.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <service id="message-service"

          class="flex.messaging.services.MessageService">

       

          <adapters>

              <adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" />

              <!-- <adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/> -->

          </adapters>

       

          <default-channels>

              <channel ref="my-polling-amf"/>

          </default-channels>

      </service>

       

       

      2. remoting-config.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <service id="remoting-service"

          class="flex.messaging.services.RemotingService">

       

          <adapters>

              <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>

          </adapters>

       

          <default-channels>

              <channel ref="my-amf"/>

              <channel ref="my-secure-amf"/>

          </default-channels>

       

          <destination id="userservicedest">

              <properties>

                  <source>service.UserService</source>

              </properties>

          </destination>

      </service>

       

      3. services-config.xml has following code

       

      <services>

              <service-include file-path="remoting-config.xml" />

              <service-include file-path="proxy-config.xml" />

              <service-include file-path="messaging-config.xml" />       

          </services>

       

      4. Compiler argument: -services "C:\BlazeDS\tomcat\webapps\login\WEB-INF\flex\services-config.xml" -locale en_US

       

       

      Please let me know what I am missing and give me some reference.

       

      Thanks