Result Handler in Synchronus Mode?

Hi,
      When i call the remote method from Flex to Java, a callback thread will be started which handles both the result and fault in 2 different methods.
But i have a scenario like this.
1) Call the remote Method from Flex to Java through BlazeDS.
2) The Java Method returns a integer Value.
3) Instead of handling this return in resultHandler, I would like to get the return value there itself.
Is it possible?
Please find my sample code.
    public static var server_:RemoteObject=new RemoteObject("sessionManager");            // Remote Object
   public static function faultEventHandler(event:FaultEvent):void            // FaultHandler
        Alert.show(event.toString(),"Error Message");
    public static function resultEventHandler(event:ResultEvent):void    // ResultHandler
       //  Process the infoMessageHolder
     public static function getSession(userId:UserLoginIdentifier , sessionIdHolder:Object,
            message:InfoMessageHolder):InfoMessageHolder {
        try {
            return server_.getSession(userId, true, message);              // Remote Call to Java Method
        } catch (e:Error) {
//            TraceManager.TrException(e);
            throw e;
        return null;
But I want to be like this
public static function getSession(userId:UserLoginIdentifier ,  sessionIdHolder:Object,
             message:InfoMessageHolder):InfoMessageHolder {
         try {
            InfoMessageHolder retValue = server_.getSession(userId, true, message);     // Remote call to the Java method
         } catch (e:Error) {
//            TraceManager.TrException(e);
             throw e;
         return null;
Regards
srini

Hi,
You mean that Synchronous call cannot be made to the Java from Flex right?
Srini

Similar Messages

  • Getting error message that states itunesexe has been set to run in compatibilty mode for an older versions of windows for best results turn off compatibility mode for itunes before you open it .How do i turn off compatibility mode?

    recieved error message that states" itunes exe has been set to run in compatibility mode for an older versions of windows for best results turn off compatibility mode for itunes before you open it. How do i access compatibility mode and turn it off ? Believe i have Windows 7.

    Try the following document, only be sure that none of the boxes in the compatibility tab are checked (not just the compatibility mode box itself): 
    iTunes for Windows: How to turn off Compatibility Mode

  • Result handler not getting invoked on button click - URGENT

    Hi Folks,
    We are working on a form submit application where we populate the form and finally click on button to submit the completed form. We are using BlazeDs On button click I call java service and expect a response object back to flex UI. We are getting the java call invoked successfully and the log clearly shows that the appropriate objects are returned from java service, however, the result handler is not getting inviked to capture the result in flex mxml. I am in urgent need of your help on this
    Code snippet:
    <mx:Script>
    <![CDATA[
    protected  
    function Service_resultHandler(event:ResultEvent):void
    Alert.show(
    "event.result.troubleTicketId ::"+event.result.status); 
    var u:URLRequest = new URLRequest("http://www.adobe.com/flex");navigateToURL(u,
    "_blank"); 
    private function faultHandler_exitService(event:FaultEvent):void {Alert.show(event.fault.faultString +
    '\n' + event.fault.faultDetail); 
    var u:URLRequest = new URLRequest("http://www.google.com");navigateToURL(u,
    "_blank"); 
    protected  
    function submit_clickHandler():void
    //Alert.show("1");
    createTicketForm.setCallDetails_callRegion(FlexUI_callDetails_callRegion);
    //Alert.show("2"+FlexUI_callDetails_callRegion);
    createTicketForm.setCallDetails_callRegion2(FlexUI_callDetails_callRegion2);
    exitService.createTroubleTicket(createTicketForm);
    ]]>
     </mx:Script>  
    <mx:RemoteObject id="exitService" destination="ExitService" fault="faultHandler_exitService(event)">
    <mx:method name="createTroubleTicket" result="Service_resultHandler(event)"/>
    </mx:RemoteObject>
    <mx:Button 
    label="submit Ticket" width="65" height="22" textAlign="right" x="904" y="-10" click="submit_clickHandler()" />
    My Java service:
    public  
    class ExitService {  
    public CreateTmsTicketResponse createTroubleTicket(CreateTicketForm createTicketForm){
    return  
    createTmsTicketResponse;}
    remoting-config.xml:
     <destination id="ExitService">  
    <properties>  
    <source>com.qwest.qportal.flex.createTicket.ExitService</source>  
    </properties>
     </destination>

    Please refer to below link, hope it helps:
    http://forums.asp.net/t/1927214.aspx?The+IListSource+does+not+contain+any+data+sources+
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

  • Web Service and result handler problem

    Hi!
    I load WSDL file and then invoke addnumbers() method without
    problems. But I don't get any results. resultHandler and
    faultHandler silent after addnumbers invoke. Where is the
    problem???
    My code:
    public function useWebService():void {
    WS = new WebService();
    WS.wsdl = "................?wsdl"
    WS.addEventListener("load", loadHandler);
    WS.addEventListener("fault",faultHandler);
    WS.useProxy = false;
    WS.loadWSDL();
    WS.addnumbers.addEventListener("result", resultHandler);
    WS.addnumbers.addEventListener("fault", faultHandler);
    public function loadHandler(event:LoadEvent):void {
    Alert.show("WSDL is loaded");
    WS.addnumbers(2,5);
    public function resultHandler(event:ResultEvent):void {
    Alert.show("in result handler");
    myTextArea.text = event.result.toString();
    public function faultHandler(event:FaultEvent):void {
    Alert.show("fault: "+ event.toString());
    My WSDL:
    <?xml version="1.0" encoding="UTF-8"?><definitions
    xmlns="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="urn:TestWebservice/wsdl"
    xmlns:ns2="urn:TestWebservice/types" xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:soap="
    http://schemas.xmlsoap.org/wsdl/soap/"
    name="TestWebservice" targetNamespace="urn:TestWebservice/wsdl">
    <types>
    <schema xmlns="
    http://www.w3.org/2001/XMLSchema"
    xmlns:tns="urn:TestWebservice/types" xmlns:soap11-enc="
    http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    targetNamespace="urn:TestWebservice/types">
    <complexType name="addnumbers">
    <sequence>
    <element name="int_1" type="int"/>
    <element name="int_2"
    type="int"/></sequence></complexType>
    <complexType name="addnumbersResponse">
    <sequence>
    <element name="result"
    type="int"/></sequence></complexType>
    <element name="addnumbers" type="tns:addnumbers"/>
    <element name="addnumbersResponse"
    type="tns:addnumbersResponse"/></schema></types>
    <message name="TestWebserviceSEI_addnumbers">
    <part name="parameters"
    element="ns2:addnumbers"/></message>
    <message name="TestWebserviceSEI_addnumbersResponse">
    <part name="result"
    element="ns2:addnumbersResponse"/></message>
    <portType name="TestWebserviceSEI">
    <operation name="addnumbers">
    <input message="tns:TestWebserviceSEI_addnumbers"/>
    <output
    message="tns:TestWebserviceSEI_addnumbersResponse"/></operation></portType>
    <binding name="TestWebserviceSEIBinding"
    type="tns:TestWebserviceSEI">
    <soap:binding transport="
    http://schemas.xmlsoap.org/soap/http"
    style="document"/>
    <operation name="addnumbers">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body
    use="literal"/></output></operation></binding>
    <service name="TestWebservice">
    <port name="TestWebserviceSEIPort"
    binding="tns:TestWebserviceSEIBinding">
    <soap:address location="
    http://................../FlexWebserviceTest2/TestWebservice"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap12="
    http://schemas.xmlsoap.org/wsdl/soap12/"/></port></service></definitions>
    --------------------

    Here it is:
    <mx:WebService
    id="WS"
    wsdl="
    http://................................TestWebservice?wsdl"
    useProxy="false"
    fault="Alert.show(event.fault.faultString), 'Error'"
    showBusyCursor="true" >
    <mx:operation name="addnumbers" >
    <mx:request>
    <int_1>
    2
    </int_1>
    <int_2>
    5
    </int_2>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Panel>
    <mx:VBox >
    <mx:HBox fontSize="12">
    <mx:Button label="Go!" click="WS.addnumbers.send()"/>
    </mx:HBox>
    <mx:HDividedBox width="800">
    <mx:TextArea id="myTextArea"
    text="{WS.addnumbers.lastResult.toXMLString()}" width="390"
    height="400" fontSize="12"/>
    </mx:HDividedBox>
    </mx:VBox>
    </mx:Panel>
    ----------------

  • Every app install results in the "waiting" mode on my home screen.   How can I complete the install process?

    Every attempted app installation results in the "waiting" mode icon on my home screen.   How can I complete the install process?   What am I missing?

    Hi,
    1) Forget downloading the application from the device, and instead download it through iTunes and sync to transfer the application to your iPhone / iPad.
    2) Other way is: Go to Application Settings> Store and tap above the Apple ID to sign out. Restart your iPhone / iPad, go back to Settings> Store and sign. Tap the icon that was waiting to update the application.

  • \n in result handler xml

    When I extract the following from result handler xml, the \n display as \n in TextArea. How can I extract from result so they are actually line breaks?
    <EmailText>Thank you for reporting this to us.\nPlease include the city you are in.</EmailText>
    private function onGotResult(event:RestServiceResponse):void {
        var defaultEmailTextValue:String = resultData..EmailText;

    Tried that, \n still displayed in textarea.
    One thing I tried holds promise. If the text has line breaks without characters, like this:
    This is the first line.
    This is the second line.
    Then no problem, EXCEPT that when the text is rendered in the text area an extra line break seems to be added. In fact everytime you save another line break is added. So save (which returns you to another page) and then return to the page with the text area, and you see this:
    This is the first line.
    This is the second line.
    Save again and you see this:
    This is the first line.
    This is the second line.
    I've done some tracing, and I can't find anywhere this is added, certainly not in my code.

  • Spotlight results appearing in icon mode

    For some reason my spotlight results appear in icon mode instead of list mode. This happens only when I type in an existing finder window. If is bring up a spotlight search window with command-option-space, the results are in list mode.
    This started happening soon after 10.6 upgrade.
    It happens in other logins as well

    Welcome to our community, gillt40
    If there were a single issue that seems to have plagued
    Captivate, you have hit it. E-Mail reporting is so far from
    reliable it isn't funny. The unfortunate part is that there are no
    answers. There is no magick solution for it. No setting you can
    tweak or forgot to turn on. It's all hit or miss. And judging from
    the posts I see here day after day after day that report the same
    thing, it's mostly miss.
    The fact of the matter is that the only really reliable
    reporting you will find is if you use a Learning Management System
    (LMS) as that was how Captivate was designed to work best.
    Sorry, but all I can do is tell the truth. Then stand back.
    Cheers... Rick

  • How to handle "Display/Change" mode in XD0x with CUSTOMER_ADD_DATA_CS

    Hi,
    I've implemented customer fields to the debitor master data screen with BADI CUSTOMER_ADD_DATA_CS,
    using methods SET_DATA and GET_DATA and created a new screen within a Z-function group.
    So I have a new tab with the custom fields. If I do nothing further, the fields are input enabeld also within transaction XD03.
    At the moment, I'm using the value of sy-tcode to check for display (=XD03) or change/create (XD02/XD01) mode to handle
    the enable/disable mode of this fields.
    This is my coding in the PBO of my Z-screen.
      LOOP AT SCREEN.
        IF screen-group1 = 'Z01'.
          IF sy-tcode = 'XD03' OR sy-tcode = 'VD03'.
            IF sy-ucomm = 'ENTR'.
              screen-input = '1'.
             ELSE.
    *.. display mode
              screen-input = '0'.
            ENDIF.
          ENDIF.
       ENDLOOP.
    But if the user change form display to change mode wthin(!) the transaction, the sy-tcode is still XD03 and not XD02.
    If this is done in the screen with the custom fields, I can check for sy-ucomm (='ENTR'), but if an other screen is opened, I could not check for sy-ucomm.
    How can I handle this?
    I've found the following enhancement point:
    ENHANCEMENT-POINT MF02DFD0_01 SPOTS ES_MF02DFD0 INCLUDE BOUND.
    Or can I use the other methods in the BADI like SET_FCODE?
    Thanks in advance!
    Andreas

    Hi Andreas:
      I have to do something similar but for t-code FD02/FD03.
    I've created a program type M to control my new dynpro, and using a PBO module to change the screen depending on display/modify.
    I'm trying to add code to method SET_DATA, but my knowledge on OO programamtion is limited.
    Could you please provide the part of your code to implement the solution described in this post?.
    Best regards,
    Carlos.

  • HT1731 "AirPort Express: How to join an existing Wi-Fi network in client mode" = 'Add to an existing network' will not result in pure client mode

    Choosing that option will always end-up in extending my wireless network.
    What I want to achieve is to just add my AE to the existing WIFI network and to use it for local access like AirPlay or Printing.
    No other client e.g. iPhone, iPad etc. should be able to connect to that AE wireless.
    So it seems that there's one step missing in that description.
    As a last step you need to manually change the set-up so that Network Mode shows 'connect to wireless network'.
    Afterwards your AE will be finally in 'Cient Mode'.
    I_am_Andy

    Thanks you!  Apple's documentation is either contradictory or incomplete.  To configure a factory default AE to "join" a network with
    Airport Utility 6, you must first select "Add to an existing network".  That results in the AE extending a network.  Then later, edit the configuration (wireless tab) to specify "join" rather than "extend".
    You can "join" a network which has already been extended; this improves the wireless reach, since you can not extend a network which has already been extended.  So you can have:
    Apple Extreme  <---->  Apple Express (extending)  <------>  Apple Express (joining)  <-----> ethernet-device

  • Result handler of a remote call not executed till the other remote calls get result

    I have 3 remote calls in sequence.
    Say RemoteCall1, RemoteCall2 and RemoteCall3. RemoteCall1 takes the least time say  5 seconds to get results. RemoteCall2 also 5 seconds and RemoteCall3 takes 30 seconds. But the resulthandler for RemoteCall1 does not execute till the RemoteCall3 gets results from server. Any fixes to call resulthander for RemoteCall1 as soon as it gets result without waiting for RemoteCall3 results.
    by the way I am usindg Robotlegs framework and AsyncToken.

    Don’t make remoteCall3 until you get the results from remoteCall2, etc.  That’s the only way I know to guarantee order.
    Fllash queues up all remote calls until the end of the frame and sends them all at once, although a network monitor should show that the go out in the order you made the calls.
    Similarly, Flash processes all available results at the end of a frame.  Results are asynchronous, but if all three results arrive in the same frame, they will all get deserialized.  And, the server may not be guaranteed to return results in the order requested, especially if different servers are handling the individual calls.
    I’m not sure if your time to get results is gated by server response or Flash processing the results.  I suspect it is the latter.  You also have the option of changing the resultFormat to get something that doesn’t need processing like XML and process it later.

  • Search Result Handler

    Hi everybody,
    After a search is performed that returned a large amount of results (BPs for example, in Account Search) the web IU displays only the first 9 results and at the bottom of these you can navigate to the next page of results. My question is if you know which event handler (if any) is on charge of handling this click on the numbers for showing the next results.
    I haven't been able to find any so far.
    Thanks in advance...

    Hello,
    This is done by the framework event TVNAVIGATOR .
    Regards,
    Sandeep Kumar B

  • Opening Document's using Document ID (DocIdRedir.aspx) results in Read-Only mode

    Hi,
    The document doesn't have Edit option when it opens through the DocIdRedir.aspx?DocId.
    Tried below below registry update solution and it doesn't provide the checkin/checkout options.
    do we have any other option/solution to enable the edit button with checkin/checkout?
    Request you please provide the solution.
    Registry update Solution:
             Add the following entry into the users registry.
    [HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Internet]  "OpenDocumentsReadWriteWhileBrowsing"=dword:00000001
               For a large number of users this would need to be done via Group Policy of course.
    Thanks,
    Neerender

    Hi  Neerender ,
    According to your description, my understanding is that you want to open document in edit mode with checkin/checkout through the DocIdRedir.aspx?DocId.
    For my test, if I configure my SharePoint 2010 to open office documents using the client application, when I open document through the DocIdRedir.aspx?DocId, the document  will be downloaded , then opened
    by the client application. So I can open it in edit mode.
    If I configure my SharePoint 2010 to open office documents in the browser, when I open document through the DocIdRedir.aspx?DocId, the document will be opened in the office web apps and I can edit it by clicking
    Edit in Brower.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • MacBook Pro Software Update Results in Singlu-User Mode

    Hello,
    Since I have had problems before with Software update, I have decided to install one item at a time to find out which update packages cause problems.
    When I installed the latest "MacBook Pro Software Update", which is strongly recommended, I ended up getting stuck with the single-user mode and now I cannot get out. When I boot, I get a console instead of a Graphical User Interface. I am really tired of Tiger. I have used Linux for the past 9 years and found it to be excellent. I expected much more from Mac OS X when I first bought my system two weeks ago. I already did an "Archive and Reinstall" and I don't want to do it again.
    How can I go back to the usual GUI environment?
    Any help is greatly appreciated.
    K.
    Any help is greatly appreciated.
    K.

    Hello,
    Here is the solution to the problem. It is simply due to XCode installation. For some reason, one needs to perform the "MacBook Pro Software Update 1.0" after an "Archive + Install" before installing any other software.
    If Xcode is installed before the update, something gets messed and the computer keeps booting to a Console instead of the GUI.
    Hope this helps to others,
    K.

  • TLS Certificate Handling in Cluster Mode

    I have two Ironport C370 in a cluster.  When I setup the inbound/outbound mail settings this is done in cluster mode and only lets me associate one cerfiticate to the configuration.  When a session hits the machine that doesn't match the certificate name they get a error unable to validate host name.  Is it possible to set this outside of cluster mode then re-enable?  We are currently on AsyncOS version 8.0.0 build 671.
    Thanks,
    Mike

    Hi Mike,
    You might find this KB entry #1765 answers your question.
    https://ironport.custhelp.com/app/answers/detail/a_id/1765
    Basically you have to go into machine mode for each appliance but ensure you use the same certificate profile name.

  • BODS IN RUN MODE RESULTS DIFFER WITH DEBUGGER MODE

    Hi Experts,
    We start facing a strange issue, We have two flat files as a source and a SQL transforms, in order to join them we have some derived column such as generate_seq_num_by_group and we are joining the data based on that, when we are running the job it works extremely fine but while we start to run them we are getting some erroneous results.
    Please suggest something. I have got some thing but there it says that it is an bug.
    Please Help.
    Thanks in Advance
    Joy

    The solution is of course to write out a table with the derived column appended, then do your join to that table.
    We have all learned to work around this bug.  Sometimes it works and sometimes it doesnt.  Thats whats most frustrating about it.

Maybe you are looking for

  • Add to favorites button

    I would like to have an add to favorites button on my flash website but it just won't work. I have copied the code from this website http://www.actionscript.org/resources/articles/24/1/Bookmark-to-IE/Page1.html into a new flash movie but when I put i

  • Using Web Upload for Flat File in BW-BPS 3.5 Stack 13

    Hi,    I am attempting to implement the "How To Guide Load a Flat File into BW-BPS Using a Web Browser" (the 7/2005 version).  However, certain BSP files named in the How to Guide, such as "JS.htm" and "checkbrowser.htm" do not exist in my generated

  • Simulate lid closed mode

    Do you know if is possible to use a software utility to simulate the lid closed mode for use with external display? I would like to use my macbook pro only with external display without close the lid, is possible? Thanks

  • When I download music it goes to my Music folder...

    When I download music it goes to my Music folder, than I put it into iTunes,but in my Music folder I have categorys like Alternative, Hip Hop.etc..also tha same in itunes,Now when I put it the song into the category in my music folder iTunes than can

  • Addition of new table in object BUS2013 in MASS T.Code

    hi, I like to add table A016 in object BUS2013 in mass transaction, please let me know the process or is there any other way to extend PO line item condition validity. Regards, Kishore Ghodki.