Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    RestDataSource queuing

    Hi,

    I am using RestDataSource with Grails. However, I saw that some DSRequests are merged and queued by default. However, my current Grails code cannot handle it.

    1. Is there any way to disable queueing? I can't find any information from docs.
    2. Is the response format (xml) different between queued and non-queued response?

    #2
    All covered in the RestDataSource JavaDoc.

    Comment


      #3
      I cannot find anything about disable queuing in the Java Doc
      http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/data/RestDataSource.html

      Comment


        #4
        I cannot get queuing work for RestDataSource.

        Log message
        Code:
        15:14:49.299:XRP1:WARN:Log:TypeError: _16.results is undefined
            RPCManager._performTransactionReply(0) @ gwt/com.arm.venus.RevenueRestXml/sc/modules/ISC_DataBinding.js:1314
            [c]RPCManager.performTransactionReply(_1=>0,  _2=>"<response><status>0</status><totalRows>..."[ 2972],  _3=>undef) @ gwt/com.arm.venus.RevenueRestXml/sc/modules/ISC_DataBinding.js:1278
            anonymous(0, [object XMLHttpRequest]) @ gwt/com.arm.venus.RevenueRestXml/sc/modules/ISC_Core.js:62
            [c]Class.fireCallback(_1=>"isc.RPCManager.performTransactionReply(..."[ 67],  _2=>"transactionNum,results,wd",  _3=>[object Array]) @ gwt/com.arm.venus.RevenueRestXml/sc/modules/ISC_Core.js:325
            [c]Comm.performXmlTransactionReply(_1=>0,  _2=>[object XMLHttpRequest]) @ gwt/com.arm.venus.RevenueRestXml/sc/modules/ISC_Core.js:1296
            anonymous([object XMLHttpRequest]) @ gwt/com.arm.venus.RevenueRestXml/sc/modules/ISC_Core.js:62
            [c]Class.fireCallback(_1=>"isc.Comm.performXmlTransactionReply(0, ..."[ 56],  _2=>"xmlHttpRequest",  _3=>[object Array],  _4=>[object XPCCrossOriginWrapper],  _5=>true) @ gwt/com.arm.venus.RevenueRestXml/sc/modules/ISC_Core.js:325
            Comm._fireXMLCallback([object XMLHttpRequest], "isc.Comm.performXmlTransactionReply(0, ..."[ 56]) @ gwt/com.arm.venus.RevenueRestXml/sc/modules/ISC_Core.js:1270
            unnamed([object Event]) @ gwt/com.arm.venus.RevenueRestXml/sc/modules/ISC_Core.js:1282
            unnamed() @
        DSRequest
        Code:
        {
            "dataSource":"isc_RestDataSource_0", 
            "operationType":"fetch", 
            "data":{
                "scenarios":"Budget", 
                "regions":"sum", 
                "products":[
                    "sum", 
                    "ProdFamily1", 
                    "ProdFamily2", 
                    "ProdFamily3", 
                    "ProdFamily4", 
                    "ProdGroup5", 
                    "ProdGroup6"
                ], 
                "time":[
                    "sum", 
                    "2002", 
                    "2003", 
                    "2004", 
                    "Q1-2004", 
                    "Q2-2004", 
                    "Q3-2004", 
                    "Q4-2004"
                ], 
                "isc_metaDataPrefix":"_", 
                "isc_dataFormat":"xml"
            }, 
            "callback":{
                "target":[CubeGrid ID:isc_CubeGrid_0], 
                "methodName":"$258"
            }, 
            "showPrompt":true, 
            "requestId":"isc_RestDataSource_0$6270"
        }
        Response
        Code:
        {
            "operationId":"custom", 
            "transactionNum":0, 
            "httpResponseCode":200, 
            "transport":"xmlHttpRequest", 
            "status":0, 
            "httpHeaders":{
                "Server":"Apache-Coyote/1.1", 
                "Content-Type":"text/xml;charset=utf-8", 
                "Transfer-Encoding":"chunked", 
                "Date":"Fri, 02 Mar 2012 23:14:48 GMT"
            }, 
            "isStructured":true, 
            "results":"<response><status>0</status><totalRows>16</totalRows><data><record><cellid>23204</cellid><scenarios>Budget</scenarios><time>Q1-2004</time><regions>West</regions><products>ProdFamily1</products><value>27359.75</value><_hilite>2</_hilite></record><record><cellid>23212</cellid><scenarios>Budget</scenarios><time>Q2-2004</time><regions>West</regions><products>ProdFamily1</products><value>23353.89</value><_hilite>2</_hilite></record><record><cellid>23220</cellid><scenarios>Budget</scenarios><time>Q3-2004</time><regions>West</regions><products>ProdFamily1</products><value>24336.18</value><_hilite>2</_hilite></record><record><cellid>23228</cellid><scenarios>Budget</scenarios><time>Q4-2004</time><regions>West</regions><products>ProdFamily1</products><value>25664.41</value><_hilite>2</_hilite></record><record><cellid>23236</cellid><scenarios>Budget</scenarios><time>2002</time><regions>West</regions><products>ProdFamily1</products><value>98315.35</value><_hilite>2</_hilite></record><record><cellid>23244</cellid><scenarios>Budget</scenarios><time>2003</time><regions>West</regions><products>ProdFamily1</products><value>101357.10</value><_hilite>2</_hilite></record><record><cellid>23252</cellid><scenarios>Budget</scenarios><time>2004</time><regions>West</regions><products>ProdFamily1</products><value>100714.23</value><_hilite>2</_hilite></record><record><cellid>24932</cellid><scenarios>Budget</scenarios><time>sum</time><regions>West</regions><products>ProdFamily1</products><value>300386.68</value><_hilite>2</_hilite></record><record><cellid>31556</cellid><scenarios>Budget</scenarios><time>Q1-2004</time><regions>West</regions><products>sum</products><value>81280.45</value><_hilite>2</_hilite></record><record><cellid>31564</cellid><scenarios>Budget</scenarios><time>Q2-2004</time><regions>West</regions><products>sum</products><value>78424.59</value><_hilite>2</_hilite></record><record><cellid>31572</cellid><scenarios>Budget</scenarios><time>Q3-2004</time><regions>West</regions><products>sum</products><value>75466.86</value><_hilite>2</_hilite></record><record><cellid>31580</cellid><scenarios>Budget</scenarios><time>Q4-2004</time><regions>West</regions><products>sum</products><value>73089.77</value><_hilite>2</_hilite></record><record><cellid>31588</cellid><scenarios>Budget</scenarios><time>2002</time><regions>West</regions><products>sum</products><value>306812.72</value><_hilite>2</_hilite></record><record><cellid>31596</cellid><scenarios>Budget</scenarios><time>2003</time><regions>West</regions><products>sum</products><value>305501.03</value><_hilite>2</_hilite></record><record><cellid>31604</cellid><scenarios>Budget</scenarios><time>2004</time><regions>West</regions><products>sum</products><value>308261.67</value><_hilite>2</_hilite></record><record><cellid>31612</cellid><scenarios>Budget</scenarios><time>sum</time><regions>West</regions><products>sum</products><value>920575.42</value><_hilite>2</_hilite></record></data></response>", 
            "data":"<response><status>0</status><totalRows>16</totalRows><data><record><cellid>23204</cellid><scenarios>Budget</scenarios><time>Q1-2004</time><regions>West</regions><products>ProdFamily1</products><value>27359.75</value><_hilite>2</_hilite></record><record><cellid>23212</cellid><scenarios>Budget</scenarios><time>Q2-2004</time><regions>West</regions><products>ProdFamily1</products><value>23353.89</value><_hilite>2</_hilite></record><record><cellid>23220</cellid><scenarios>Budget</scenarios><time>Q3-2004</time><regions>West</regions><products>ProdFamily1</products><value>24336.18</value><_hilite>2</_hilite></record><record><cellid>23228</cellid><scenarios>Budget</scenarios><time>Q4-2004</time><regions>West</regions><products>ProdFamily1</products><value>25664.41</value><_hilite>2</_hilite></record><record><cellid>23236</cellid><scenarios>Budget</scenarios><time>2002</time><regions>West</regions><products>ProdFamily1</products><value>98315.35</value><_hilite>2</_hilite></record><record><cellid>23244</cellid><scenarios>Budget</scenarios><time>2003</time><regions>West</regions><products>ProdFamily1</products><value>101357.10</value><_hilite>2</_hilite></record><record><cellid>23252</cellid><scenarios>Budget</scenarios><time>2004</time><regions>West</regions><products>ProdFamily1</products><value>100714.23</value><_hilite>2</_hilite></record><record><cellid>24932</cellid><scenarios>Budget</scenarios><time>sum</time><regions>West</regions><products>ProdFamily1</products><value>300386.68</value><_hilite>2</_hilite></record><record><cellid>31556</cellid><scenarios>Budget</scenarios><time>Q1-2004</time><regions>West</regions><products>sum</products><value>81280.45</value><_hilite>2</_hilite></record><record><cellid>31564</cellid><scenarios>Budget</scenarios><time>Q2-2004</time><regions>West</regions><products>sum</products><value>78424.59</value><_hilite>2</_hilite></record><record><cellid>31572</cellid><scenarios>Budget</scenarios><time>Q3-2004</time><regions>West</regions><products>sum</products><value>75466.86</value><_hilite>2</_hilite></record><record><cellid>31580</cellid><scenarios>Budget</scenarios><time>Q4-2004</time><regions>West</regions><products>sum</products><value>73089.77</value><_hilite>2</_hilite></record><record><cellid>31588</cellid><scenarios>Budget</scenarios><time>2002</time><regions>West</regions><products>sum</products><value>306812.72</value><_hilite>2</_hilite></record><record><cellid>31596</cellid><scenarios>Budget</scenarios><time>2003</time><regions>West</regions><products>sum</products><value>305501.03</value><_hilite>2</_hilite></record><record><cellid>31604</cellid><scenarios>Budget</scenarios><time>2004</time><regions>West</regions><products>sum</products><value>308261.67</value><_hilite>2</_hilite></record><record><cellid>31612</cellid><scenarios>Budget</scenarios><time>sum</time><regions>West</regions><products>sum</products><value>920575.42</value><_hilite>2</_hilite></record></data></response>"
        }

        Comment

        Working...
        X