Expand my Community achievements bar.

RemoteObject component not hitting java method

Avatar

Former Community Member

Hi,


I am using LCDS RemoteObject component to connect to my java classes from flex. On start up I do not 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

2 Replies

Avatar

Former Community Member

Is com.sample.impl.MyJavaImpl in the WEB-INF\classes or WEB-INF\lib directory of the web application?

Avatar

Former Community Member

hi,

com.sample.impl.MyJavaImpl is in WEB-INF\classes