Flex RemoteObject

Hello All
Who know How to use Flex Remoteobject element in Web Dynpro Java with Flash-Islands.thanks

Hi,
Have a look at the following thread:
[Flash Islands] Flex communication, AMF (Action Message Format) ?
Regards.
Rajat

Similar Messages

  • Issue with setting dynamic destinations on (Flex) RemoteObject

    When setting the AMFChannel on a RemoteObject I am seeing the following behavior using builds 3.2.0.3978 and 3.0.1.1755:
    faultCode:Client.Error.DeliveryInDoubt faultString:'error' faultDetail:'Invalid URL url: 'http://mymachine:8080/myService/messagebroker/amf''
    The same client code works without incident running against 3.0.0.544.
           private function invokeGetCompoundName():void
                var remoteObj:RemoteObject = new RemoteObject();
                remoteObj.addEventListener(ResultEvent.RESULT, resultHandler);
                remoteObj.addEventListener(FaultEvent.FAULT, faultHandler);
                remoteObj.destination = "myServiceDestination";
                var channelSet:ChannelSet = new ChannelSet();
                var channel:AMFChannel = new AMFChannel("my-amf", "http://mymachine:8080/myService/messagebroker/amf");
                channel.pollingEnabled = true;
                channel.pollingInterval = 2500;
                channelSet.addChannel(channel);
                remoteObj.channelSet = channelSet;
                remoteObj.getCompoundName();   
    What I've observed is that in the more recent builds the BlazeDS server is outputting header information with mustUnderstand=true versus mustUnderstand=false when using 3.0.0.544.
    (myService does use objects with session scope)
    Version: 3
    (Header #0 name=AppendToGatewayUrl, mustUnderstand=true)
        ";jsessionid=CD046D04F6D5B4D96112319D70A511AE"
      (Message #0 targetURI=/1/onResult, responseURI=)
        (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
          destination = null
          headers = (Object #1)
          correlationId = "588D4A0D-55E3-9EAB-395D-976720ECE4D6"
          messageId = "91A2CA0E-350B-879D-BDD6-AA2B04895C6C"
          timestamp = 1.239490699781E12
          clientId = "91A2C99B-761E-44F7-B8B3-4AA861B3148B"
          timeToLive = 0.0
          body = (Typed Object #2 'com.mypackage.CompoundName')
            objectName = "SomeObject"
            fieldName = "SomeField"
    I would appreciate any insight into this issue.  Might this be a bug, or is there something I'm doing incorrectly but getting away with in 3.0.0.544?
    Is there a way to configure the newer server versions to produce the same header output as before, if that is in fact the issue?
    Thank you,
    David

    > Leah-L Said:
    > We were able to replicate your problem here as well. We are also seeing that the destination directory for the build is determined and set *before* the pre-build VI is run. Just so I am aware, have you found any other documentation concerning Pre-Build VI's?
    Cool, thanks for confirming that I'm not crazy.   And no, I haven't found any documentation concerning this phenomenon.
    > gmart Said:
    > it potentially processes the information and so simply updating values may not have the desired effect
    Good to know. I think this should be in the documentation somewhere though, perhaps in the detailed help for the Get/Set Tag invoke nodes for a Build Spec reference.
    To fix the issue, I've just made my own "Build Executable" vi that sets the tags before the build is started. It uses the same VI that I attached earlier (confirming that the VI works). Instead of starting the build from the project window and having a pre-build vi execute, I run this stand-alone VI and it builds the app.

  • Call flex remoteObject data in a loop

    here is simple explanation,
    I need to show some panel and some buttons in that panel.
    consider we have 5 panels, so i use for loop for 1 to 5.
    inside that panels Button name comes from java
    using remoteObject and blazeds.
    Now my problem is remote object method not returning any value since it has void return type.
    Following example may give u better understanding.
    for(var m:int=0;m<=4;m++)
    var outerPanel:Panel= new Panel;
    outerPanel.titile=m;
    this.addElement(outerPanel);
    // object of 2nd class which(Should fetch, but its not happening) fetch the value from remoteObject
      var rmObj:remoteObjectClass = new remoteObjectClass();
    var arc:ArrayCollection= new ArrayCollection();
      arc=rmObj.getRemoteData(m);
    for(var n:int=0;n<=arc.length;n++)
      var testBut:Button= new Button();
       testBut.name=arc[n];
    outerPanel.addElement(testBut);
    Now here is the functions in RemoteObjectClass
              public function  getObjective(m:Int):void   
                var  ro:RemoteObject= new mx.rpc.remoting.mxml.RemoteObject;   
                ro.destination="getEntity"; 
               // getobjectives(); is java method which return ArryList 
                ro.getobjectives(m);       
                ro.addEventListener(ResultEvent.RESULT,objectivesResultHandler);                     
            private function objectivesResultHandler(event:ResultEvent):ArrayCollection   
            {   var objectiveList:ArrayCollection= new ArrayCollection;   
                objectiveList=event.result as ArrayCollection;                 
                return objectiveList;   
    Hope you understand my problem

    Instead of   arc=rmObj.getRemoteData(m);
    You have to access the objectiveList to get the button data. It is not better way to access the remote object class inside the loop.

  • Is there a maximum size in either ColdFusion, Flex or AMF

    I wish there was an AMF forum.
    I have CF version 8,0,0,176276, Flex 3.0.214193, and Oracle 10g.
    I am trying to build an application in Flex, using RemoteObject access to a ColdFusion .cfc via the AMF channel. The application has several comment fields with are allowed to be over 4000 characters in length, so in Oracle they are defined as CLOBs. It all was going pretty well until I started to test it with some very long comments. Then the updates stopped working, but there was no error. I used CFFILE to dump the passed arguments out to a file, and found that one of the CLOB fields in the where clause was truncated. But then I don't know for sure that the CFFILE wasn't the one doing the truncating. All I know for sure is the update doesn't complete. None of the logs show anything. I can't use a TRY/CATCH in the .cfc because the CFQUERY runs without an error.
    Is there a size limit in Flex RemoteObject? or maybe the limit is in AMF. I have the ColdFusion limit set for 1GB pagesize, but does a .cfc count for pagesize?
    I don't even know where to start on this one. Any help you can give my is appreciated.
    Scott

    answers (or at least discussion) continue there : http://forums.adobe.com/thread/414553?tstart=0
    You should close that one :-)

  • Is there a maximum size in either Flex, AMF or ColdFusion

    I wish there was an AMF forum.
    I have CF version 8,0,0,176276, Flex 3.0.214193, and Oracle 10g.
    I am trying to build an application in Flex, using RemoteObject access to a ColdFusion .cfc via the AMF channel. The application has several comment fields with are allowed to be over 4000 characters in length, so in Oracle they are defined as CLOBs. It all was going pretty well until I started to test it with some very long comments. Then the updates stopped working, but there was no error. I used CFFILE to dump the passed arguments out to a file, and found that one of the CLOB fields in the where clause was truncated. But then I don't know for sure that the CFFILE wasn't the one doing the truncating. All I know for sure is the update doesn't complete. None of the logs show anything. I can't use a TRY/CATCH in the .cfc because the CFQUERY runs without an error.
    Is there a size limit in Flex RemoteObject? or maybe the limit is in AMF.
    I don't even know where to start on this one. Any help you can give my is appreciated.
    Scott

    About CLOB size, it's 4Go not 4000 characters - VARCHAR2 supports up to 4000 bytes. Pay attention also to unicode encoding!
    Are you using CFQUERYPARAM to insert into the CLOB fields ?
         <CFQUERYPARAM CFSQLTYPE="CF_SQL_CLOB" VALUE="    ">
    use the Firebug extension (https://addons.mozilla.org/en-US/firefox/addon/1843) in Firefox3 and do some network monitoring: let me know what you're seeing there.
    Hope it will help...

  • Generating PDF from Flex BarChart

    Hello,
    I am new to Flex. Have been playing with creating Advanced
    Data Grid and Bar Charts for our application prototype and would
    like to explore how to create a PDF file of the BarChart or other
    charting components.
    The requirement is simple. We show the BarChart and a button
    to view it as a PDF. When the user presses the button, the PDF
    viewing dialog should come up and the user can opt to save the PDF
    or view it (the standard way a browser deals with the PDF).
    Have read blogs, this forum and LiveCycle docs but don't
    understand clearly how Flex communicates with
    LiveCycle ES (or PDF Generator) to display the PDF. Any ideas
    or tutorials that does this would be appreciated.
    Thanks,
    Kannan

    In order to generate a PDF document, you have to call a
    method on a Java remote object that uses the XFAHelper and pass it
    some arguments.
    I modified the PDFService example in the documentation so I
    can:
    1- specify any document as opposed to hardcoding the PDF
    template name
    2- write the PDF to a file as opposed to writing it in the
    user's session
    Here is the source:
    package com.mycompany.flex.remoteObjects;
    import java.io.File;
    import java.io.IOException;
    import org.w3c.dom.Document;
    import flex.acrobat.pdf.XFAHelper;
    import flex.messaging.FlexContext;
    import flex.messaging.util.UUIDUtils;
    public class PDFService
    public PDFService()
    public Object generatePDF(Document dataset, String
    PDFdocument) throws IOException
    // Open shell PDF
    String source =
    FlexContext.getServletContext().getRealPath("/pdfgen/" +
    PDFdocument);
    int index = source.indexOf("./");
    if(index != -1 )
    // Remove the ./ added by UNIX
    source = source.substring(0, index) + source.substring(index
    + 2, source.length());
    XFAHelper helper = new XFAHelper();
    helper.open(source);
    // Import XFA dataset
    helper.importDataset(dataset);
    // Create a unique ID
    String uuid = UUIDUtils.createUUID(false);
    source =
    FlexContext.getServletContext().getRealPath("/dynamic-pdf/" + uuid
    + "_" + PDFdocument);
    index = source.indexOf("./");
    if(index != -1 )
    // Remove the ./ added by UNIX
    source = source.substring(0, index) + source.substring(index
    + 2, source.length());
    // Create the file object
    File file = new File(source);
    // Save the file
    helper.save(file);
    // Close any resources
    helper.close();
    return (uuid + "_" + PDFdocument);
    pdfgen is the folder where my PDF template resides.
    dynamic-pdf is the folder where the generated PDF are saved.
    These two folders are located under flex.war at the first
    level.
    In Flex, I wrote a Cairngorm command that calls this remote
    object and displays the generated PDF:
    package com.mycompany.core.commands
    import com.adobe.cairngorm.commands.ICommand;
    import com.adobe.cairngorm.control.CairngormEvent;
    import com.adobe.cairngorm.business.Responder;
    import
    com.mycompany.core.business.GenerateAndOpenPDFDelegate;
    import
    com.mycompany.core.control.event.GenerateAndOpenPDFEvent;
    import com.mycompany.core.model.ModelLocator;
    import flash.net.navigateToURL;
    import flash.net.URLRequest;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.collections.*;
    import mx.core.Application;
    import mx.controls.Alert;
    public class GenerateAndOpenPDFCommand implements ICommand,
    Responder
    [Bindable]
    private var model:ModelLocator = ModelLocator.getInstance();
    public function GenerateAndOpenPDFCommand():void
    public function execute(event:CairngormEvent):void
    trace("Executing GenerateAndOpenPDFCommand...");
    var delegate : GenerateAndOpenPDFDelegate = new
    GenerateAndOpenPDFDelegate( this );
    var generateAndOpenPDFEvent : GenerateAndOpenPDFEvent =
    event as GenerateAndOpenPDFEvent;
    delegate.generateAndOpenPDF( generateAndOpenPDFEvent.pdfVO
    public function onResult( event : * = null ) : void
    var item:Object;
    var result:String = (event as ResultEvent).result as String;
    trace("GenerateAndOpenPDFCommand::onResult\n\n" + result);
    if (result)
    // Open the generated PDF in a new window
    navigateToURL(new URLRequest(ModelLocator.FLEX_URL +
    "dynamic-pdf/" + result), "_blank");
    // Hide the progress bar overlay
    Application.application.requestProgressBar.visible = false;
    Application.application.requestProgressBar.progressBar.source =
    null;
    Application.application.requestProgressBar.progressBar.label
    = this.model.languageDictionary["000012"];
    public function onFault( event : * = null ) : void
    // Hide the progress bar overlay
    Application.application.requestProgressBar.visible = false;
    Application.application.requestProgressBar.progressBar.source =
    null;
    // Debug
    Alert.show("GenerateAndOpenPDFCommand:\n\n" + (event as
    FaultEvent).message);
    FLEX_URL is created in this way some place else in the
    application:
    // Get the server URL from the Application's
    var server:String = Application.application.url;
    var index:uint = server.indexOf("Shell"); // Shell is the
    name of my app folder
    server = server.substring(0, index);
    // This is the flex.war/ URL
    ModelLocator.FLEX_URL = server;
    Of course, it would be better to save the PDF in the user's
    session as Adobe suggests, but I couldn't figure out how they use
    the PDFResourceServlet. First of all, I had to get its code.
    I had to decompile the java class files in the samples to get
    the source of the PDFResourceServlet as it is not in the
    documentation. Here it is:
    package com.mycompany.flex.remoteObjects;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    public class PDFResourceServlet extends HttpServlet
    public PDFResourceServlet()
    protected void doGet(HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
    doPost(req, res);
    protected void doPost(HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
    String id = req.getParameter("id");
    if(id != null)
    HttpSession session = req.getSession(true);
    try
    byte bytes[] = (byte[])(byte[])session.getAttribute(id);
    if(bytes != null)
    res.setContentType("application/pdf");
    res.setContentLength(bytes.length);
    res.getOutputStream().write(bytes);
    } else
    res.setStatus(404);
    catch(Throwable t)
    System.err.println(t.getMessage());
    private static final long serialVersionUID =
    0x7180e4383e53d335L;

  • Flex Directly To JdbcService

    I need to have a Flex form communicate with the LC database.  I see 4 ways to make this happen.
    Have Flex use a RemoteObject call to a custom written process that actually invokes a JDBC operation
    Have Flex use a RemoteObject call to a custom written process that uses the ExecuteScript activity to invoke the JDBC operation
    Have Flex use a RemoteObject call to a custom Java service component that invokes the JDBC operation
    Have Flex use a RemoteObject call to the JDBCService component directly
    I have done 1, 2 & 3 and while those are fine in most cases, at some points, I find myself wanted to use (4).  Has anyone done (4)?  In theory, it shouldn't be that hard, the problem I have is that in looking at the component.xml file, it looks like it is calling special classes, such as
    com.adobe.idp.dsc.jdbc.bean.SqlStatementInfoBean
    com.adobe.idp.dsc.jdbc.bean.XmlDocumentInfoBean
    which I would need to pass as part of the parameters in the Flex RemoteObject call.  Has one anyone done this?  Where would I find these classes and how would I create them within the Flex environment so that they could be used by the JdbcService?

    I don't think this way is possible.
    First reason is that the JdbcService doesn't have a Default Remoting Endpoint which is allows you to invoke from Flex.
    Or, In case, if the service is exposed over WSDL you can still try. Currently it is not exposed over WSDL.
    My opinion is to choose the option1, which is more convenient to use with external calls.
    Nith

  • Flex Project with Java

    Hi,
    I want to create a Flex Project which uses Java EE Server.
    This is my requirement...I have a login Page, Register Page...when I Register the data should be sent to Database Table. when I login with existing username and password, It should validate from the Database and then a new page opens up which shows any info.
    Can anybody tell me, how this can be achieved??
    Thanks for the Help...

    You'll probably use the Flex RemoteObject to connect to your J2EE app.
    http://livedocs.adobe.com/flex/3/html/help.html?content=transitions_2.html
    http://www.summa-tech.com/blog/2009/03/05/flex-remote-object-services-blazeds/
    http://learn.adobe.com/wiki/display/Flex/Creating+Flex+Builder+Projects+that+Use+Server+Te chnologies
    http://livedocs.adobe.com/flex/3/html/help.html?content=projects_3.html
    If this post answered your question or helped, please mark it as such.

  • PHP And Flex

    I have been trying to understand (via researching the Web and
    books from bookstores) different ways to integrate a php/mysql
    database into my Flex application. There appear to be multiple
    solutions which is confusing me so I am looking for some advice and
    feedback. My initial attempt is relatively simple (one table with
    12 fields) but I would like to get comfortable with more advanced
    applications. I have looked at CREATE APPLICATION FROM DATABASE,
    creating a php page with an HTTP Service request(with print, echo
    etc xml info), and finally I have looked at Joomla solutions. I am
    looking for some guidelines as to what approach can and should be
    used. I am a little past beginner level both in PHP and MYSQL using
    MAMP right now and/or Navicat.

    ohaio
    webService , httpService(get,send) and RPC benchmark
    http://www.themidnightcoders.com/blog/2007/03/flex-remoteobject-vs-webservice.html

  • Timming Problem with RemoteObject

    Hi,
    I am Sagar S. De, I have faced a problem with Flex
    DataService described below…
    I am using flex RemoteObject to get data from Database and
    then I am trying to set the data in ArrayCollection. But the data
    is not assigned to ArrayCollection. When I am debugging I have
    found that the ArrayCollection is assigned before data came from
    Database. How do I solve the problem?
    Here is a code snippet where I have faced the problem exactly
    (In alert box Result2 comes before Result1).
    package visualsqlbuilder.logic {
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.remoting.mxml.RemoteObject;
    public class Table {
    public var tableNames : ArrayCollection = new
    ArrayCollection();
    /* RETURNS ALL TABLE NAMES FORM THE DATABASE OF THE
    SPECIFIED SCHEMA */
    public function getTables(connectionTypetring,
    schemaNametring) : ArrayCollection {
    var remoteGetTables : RemoteObject = new RemoteObject();
    remoteGetTables.destination = "DBDetails";
    remoteGetTables.addEventListener(ResultEvent.RESULT,
    resultGetTables);
    remoteGetTables.addEventListener(FaultEvent.FAULT,
    faultGetTables);
    remoteGetTables.showBusyCursor = true;
    remoteGetTables.getDBTables(connectionType, schemaName);
    //Executes Before data came from Database and show tableNames
    as blank ie. null
    Alert.show("Result 2: " + tableNames.toString());
    return tableNames;
    public function resultGetTables(event:ResultEvent) : void {
    var result : ArrayCollection = event.result as
    ArrayCollection;
    tableNames.removeAll();
    for(var i : int = 0; i<result.length; i++) {
    var string = result.getItemAt.toString();
    tableNames.addItem;
    //Executes later; ie. After getting data from Databse and
    show tableNames correctly
    Alert.show("Result 1: " + tableNames.toString());
    public function faultGetTables(event:FaultEvent) : void {
    mx.controls.Alert.show(event.fault.toString());

    You need to realize that Flex does most of the asynchronous,
    that means that the function
    remoteGetTables.getDBTables(connectionType, schemaName); will
    returns immediately.
    So if you want to place an Alert somewhere, do it in your
    response function where you currently show your Result 1.
    It's currently hard to understand what you really want to do
    with your dataset. But further processing of real data needs to be
    done in the function resultGetTables or other functions executed
    when the result comes back.
    Ries

  • Exception deserializing from BlazeDS with the help of [RemoteClass] metadata

    Hi,
    In my BlazeDS application (AMF based), I am throwing two kind of java Exceptions:
    TechnicalException extends RuntimeException : this one is thrown to the Flex client when any unexpected error on the server is caught
    BusinessException extends Exception : this one is a base class for business-related exception
    On the Flex side, I created the same Exception classes mapped to the Java ones using the [RemoteClass] metadata tag.
    In the error event handler of my RemoteObject call, I am looking at the event.fault.rootCause property for fully typed flex exception class, so that I can simply switch my behavior depending on the received exception. I observed the following behavior:
    When throwing a java TechnicalException from the server, it is correctly deserialized as a flex TechnicalException on client side. So the assertion "event.fault.rootCause is TechnicalException" is working fine.
    When throwing a java BusinessException from the server, it is NOT correctly deserialized as a flex BusinessException on client side. So the assertion "event.fault.rootCause is BusinessException" is NOT working.
    The only reason I see for that is that only RuntimeExceptions can be deserialized strongly typed on Flex side. Is it the nominal behavior of the Flex RemoteObject or did I miss something ?
    Many thanks in advance for your help,
    Avangel.

    Ok, I finally found the answer to my problem. For those interested, the cast of java Exceptions into ActionScript Exception is working exactly like any other class. It has nothing to do with whether the java class extends RuntimeException or not, or any other class / interface. It just doesn't matter at all. Flex RPC simply looks for an AS class mapped to the received Java class through the [RemoteClass] metadata tag. If it finds it, it just try to map fields from java object to AS object (even if a field is not matching, it just ignores it).
    So the problem was a very well-know AS compiler problem: AS classes that are used only at runtime for conversion are not compiled in the SWF. In other words, if you have not any class that references your Exception class, that one won't be included in the SWF file, so the RemoteObject won't find it, thus returns an Object instead of strongly typed AS class.
    Hope this may help someone
    Avangel.

  • Offline synchronization using AIR and Blazeds

    hi freinds how we do offline synchronizaton in AIR application using Blazeds ...
    can u please guide me..
    thanks in advance
    Prajnith.

    Basically, is you use straight PHP, then you do everything yourself, unless you are using a framework written in PHP like AMFPHP.
    So with PHP you typically use Flex HTTPService controls to call your PHP scripts, and the communication is one-way, you call the script and handle the returned data.
    With BlazeDS and AMFPHP, you can use Flex RemoteObject controls for two-way "server push" functionality, like a stock ticker updating automatically without the user doing anything if the price of a stock goes up.
    Backend distributed data just means you have the data elsewhere (not on the user's machine), and it could be distributed (on serveral servers).
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.chikaradev.com
    Adobe Flex Development and Support Services

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • How to stop a running remoteobject in flex?

    Hi,
    I'm using Flex+Blazeds+Java to do my project, but now I met a big problem: when I query the database, I use remoteobject to call the Java method to do this. But usually the query takes a long time, so during the waiting time , I hope I can cancel the query operation, or when I begin the next query, it can cancel the last query operation automatically. Is there any way to do this? If yes, How?
    Thanks a lot!

    Did you ever solve this problem ? If so please share the solution.

  • Flex 4.0.0.10485: strange RemoteObject behaviour

    The following code snippet only works when used within the script block of the main <s:Application> tag - when I use it within an ActionScript class (i.e. a proxy class), I get server errors:
            import mx.rpc.AsyncResponder;
            import mx.rpc.AsyncToken;
            import mx.rpc.events.ResultEvent;
            import mx.rpc.remoting.mxml.RemoteObject;
            var remoteObject:RemoteObject = new RemoteObject("echoAmfService");
            remoteObject.endpoint = "http://myserver:8080/blazeds/amf";
            var token:AsyncToken = remoteObject.echo("Test");
            token.addResponder(new AsyncResponder(resultHandler, faultHandler, token));
    So the <s:Application> must either do something under the hood or it is a bug in Flex 4. Any idea?
    Thanks and Regards,
    Peter

    what errors?

Maybe you are looking for

  • How do you handle the iPhone/iPad/iPod Touch with PHDs?

    This is one of the areas that I'm having the most difficulty right now. Here's the setup: 1 Server with 10.5.8 3 desktops with 10.6.3 2 laptops with 10.6.3 3 users, each of whom has an iPhone. Let's say Jane has been using her desktop all week but is

  • Z77A-GD65 boot issue!

    Hey. I have this Z77A-GD65 motherboard which I bought around July 2012, which has been working great until this morning.  First of all, I don't do any overclocking, It has no meaning to me and I didn't change anything on the BIOS, not even used it pr

  • Help installing itunes on laptop with Windows Vista.

    I have a laptop with Windows Vista.  I've tried to download iTunes but I keep getting a message that says "There is a problem with this Windows Installer package.  A program required for his install to complete could not be run.  Contact your support

  • How to restore a dropped table when recycle bin is purged??

    how to restore a dropped table when recycle bin is purged??

  • Request/Reply in FTP Adapter

    Hi, I have to implement the Req/Reply paradigm with an FTP Adapter and DB Adapter. A file is created which is read by FTP adapter and a synchronous reply is required in the same file e.g the file will contain XML for customer number; in response in r