1 Reply Latest reply on Dec 29, 2009 5:51 PM by Pii T

    RemoteObject component not hitting java method

    lakshdn

      Hi,

       

      I am using LCDS RemoteObject component to connect to my java classes. On start up i don't see any error in tomcat.

      However i am not able to invoke java method using this component.

       

      Can someone please help me if something is missing or wrong as i am stuck here, not able to figure out :-

       

      --remoting-config.xml -> definition

      <adapters>

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

      </adapters>

      <default-channels>

           <channel ref="my-amf"/>

      </default-channels>

      <destination id="myDestId">

           <properties><source>com.sample.impl.MyJavaImpl</source></properties>

      </destination>

       

      --services-config.xml  -> definition

      <channels>

           <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">

                <endpoint url="http://{server.name}:{server:port}/{context.rppt}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>

           </channel-definition>

      </channels

       

      --calling mxml -> usage

      <mx:RemoteObject id="myRO" destination="myDestId">

           <mx:method name="javaMethod"/>

      </mx:RemoteObject>

       

      --calling line

      myRO.javaMethod.send();

       

      Any help is appreciated

      Thanks

        • 1. Re: RemoteObject component not hitting java method
          Pii T Level 1

          Edit: Sorry I didn't saw that you already set that. Ummm..... maybe some other guys might have a better idea.

           

           

          I'm not sure about LC but in BlazeDS you still have to tell it where the remote object is, specified in remoting-config.xml

           

          Ex.

           

          <destination id="Service">
                  <properties>
                      <source>Service.TestService</source>
                  </properties>
              </destination>

           

          In this case my .java is in blazeds's classes/Service and the file name is TestService.class