This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
Please help on a Channel failed problem (Flex blazeds java and long background process)
posted 4 years ago
I got a problem when I tried running my project. I use Flex, blazeds and java, and at the backgroud, my java code has to do some long time work. After I use a Remote Object to invoke this long time java process, the channel failed. Could anybody suggest me how I can hold this channel?
Here is the exception:
faultCode:Channel.Call.Failed faultString:'error' faultDetail:'NetConnection.Call.Failed: HTTP: Failed'
In the JSP, I can keep refresh current page and wait for the result. But in my flex GUI, the remote java code is called from a panel, in this situation, if I refresh the page, the panel will be gone. Is there any good idea to monitor remote object's status. for example, in Flex, I check the objec every 2 seconds, if job finished, I go to the ResultEvent listener? What API should I use for this