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

    RemoteObject component not hitting java method

    lakshdn Level 1



      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


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



           <channel ref="my-amf"/>


      <destination id="myDestId">




      --services-config.xml  -> definition


           <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"/>




      --calling mxml -> usage

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

           <mx:method name="javaMethod"/>



      --calling line



      Any help is appreciated


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

          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




          <destination id="Service">


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