Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

RPC call failure flex to J2EE container

Avatar

Level 1
I am a flex newby so I am sure this is a 'dumb' problem. I
have installed flex.war (FDS) on my J2EE server and successfully
started it. I changed the remoting-config.xml file and added the
following...



<destination id="portfolio">

<properties>

<source>com.theriabook.jms.Portfolio</source>

</properties>

</destination>



and the java code exists and has successfully compiled within
the flex profject under src folder.



I then exported a 'release build' which produced a bunch of
files including the .html and .swf. I then copied these files to a
directory I created on the web server. I then invoked the .html
file and the app popped up but when it tried to make the RPC call I
got the error...



Portfolio feed failure...

Invoke failed

Couldn't establish a connection to 'portfolio'



I am assuming I have incorrectly deployed the app but I have
no idea what to do.



Help !!!!!!





1 Reply

Avatar

Level 2
Hi,



Firstly you should not be compiling your your Java classes
with Flex project. Java classes have to be in the classes folder of
the web application, which has BlazeDS/LCDS jar files deployed.



Please visit the URL below for details on how to use
RemoteObject to invoke methods on Java classes on the server.




http://livedocs.adobe.com/flex/3/html/data_access_4.html#202412



Hope this helps.