1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    3
    Vote Rating
    0
    martyglaubitz is on a distinguished road

      0  

    Default How to set Timeout for Ext.Direct Calls

    How to set Timeout for Ext.Direct Calls


    Hello,
    i've an Issue with the Timeout of Our Ext.Direct Calls.

    We're using Spring MVC 3 for our Server Side an the extdirectspring Library
    from ch.ralscha http://code.google.com/p/extdirectspring/
    W
    hich works fairly well. The Problem is that some of our ServerSide
    Methods take over 1 1/2 Minute to be executed and the default Timeout for
    Ext.Direct Calls seem to be 30 seconds.
    So we improved the Library that the String for the Remoting provider looks like this:

    Code:
    Ext.app.REMOTING_API = {
    "url":"/usermanagement/extdirect/router",
    "actions":{"myService":[{"len":0,"name":"myMethod"}]},
    "type":"remoting",
    "timeout":120
    };
    This seems to work but unfourtunaly in Firefox(!!) after the first Request
    all Calls runnig against the wrong URL, example: "our_application/ourpage.do",
    an not against "our_application/extdirect/router"
    When removing the "timeout" property, everything works fine again,
    but again we got the 30sec. Timeout Problem...

    So: How can we change the 30second Timeout ?

    thanks in advice

    Marty Glaubitz

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    3
    Vote Rating
    0
    martyglaubitz is on a distinguished road

      0  

    Default SOLVED

    SOLVED


    Oh, i'am that stupid.
    I forgot timeout is in Milliseconds instead seconds.
    120ms are quite short^^

Tags for this Thread