Hello,
I created a FlexProject name Test1 and created jave src under it now
created java file in the javascr folder, crated WEB-INF under Test1
and saved my .class file to Test1/WEB-INF/classes dir and stored
remotingconfig.xml in Test1/WEB-INF/flex and deployed my class file.
now I have creted a Test1.mxml which calls the method in java using
rpc, I am getting the following error
[RPC Fault faultString="[MessagingError message='Unknown
destination 'testc'.']" faultCode="InvokeFailed"
faultDetail="Couldn't establish a connection to 'testc'"]
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"/>
</default-channels>
<destination id="testc">
<properties>
<source>MyTest</source>
<scope>application</scope>
</properties>
</destination>
</service>
my File structure
Test1(FlexProject)
--javasrc
--MyTest.java
--WEB-INF
--flex
--remoting-config.xml
--classes
--MyTest.class
--Test1.mxml
can any one help me
Thanks