« Return to Thread: funtion taking time to return Callback
I changed my application to use dwr 2.0.5. But still the same issue.
I think I dont have any delay in client side rendering (by the way am using
Firefox).
I have kept a timer before the function
StrandSummary.buildStrandSummary(objParametersBD,and after "function(objSummary)". My problem is it is taking some 20sec of
function(objSummary){
objObjectiveSummary = objSummary;
displayStrandSummary();
});
time to return me the callback function. Is that having more java beans is
creating problem. (I feel this should not be)
Thanks,
Rizwan
--
David Marginian-3 wrote:
>
> This is not normal so my guess is you are trying to return way too much
> data or have recursive data. Are you really using version of 2.0, not
> 2.05? I mention this because we used to have some performance issues in
> building JS objects on the client. We were using string concatenation
> instead of adding to and joining an array. This can cause older IE
> versions to bog down. This is fixed in 2.05, but may exist in older 2.x
> versions.
>
> Have you tried calling your method from the DWR test page as Lance
> initially recommended? Does this happen in all browsers (try using
> Firefox)? You need to determine if the slow up on the server (DWR
> serializing) or on the client. In addition to Lance's recommendation I
> would recommend placing some breakpoints in your script with Firebug
> (you can even place some in engine.js before and after the call
> returns). To weed out DWR's serialization on the server you can grab
> the source code and place a breakpoint in the marshallOutbound method on
> BaseCallMarshaller.
>
>
> Rizwan Ahmed wrote:
>> ExtraLatencyAjaxFilter didnot solved my problem.
>> Its not a simple bean converter. The return type is bean itself. That
>> inturn
>> sets 6-8 beans in that.
>>
>>
>> Lance Java wrote:
>>
>>> Can you give a bit more info on the return type of the method and the
>>> converter you are using?Is it a simple bean converter or is it some form
>>> of
>>> hibernate converter fetching unwanted rows from your DB?
>>>
>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>
>>>
>>>> Hi Lance,
>>>>
>>>> I will configure this and check it.
>>>> I feel its not exactly clientside problem, but it is taking time to get
>>>> the
>>>> callback.
>>>>
>>>> Rizwan
>>>>
>>>>
>>>> Lance Java wrote:
>>>>
>>>>> I don't suppose you've got joe's ExtraLatencyAjaxFilter configured?
>>>>> <filter
>>>>>
>>>> class="org.directwebremoting.filter.ExtraLatencyAjaxFilter">
>>>>
>>>>> </filter>
>>>>>
>>>>> Have you tried executing from the dwr debug page? Is it some
>>>>> clientside
>>>>> rendering taking the time?
>>>>>
>>>>> 2009/6/23 Rizwan Ahmed <rizwan.amd@...>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>> Am using DWR 2.0.
>>>>>> I have written a piece of code in javascript as:
>>>>>>
>>>>>> StrandSummary.buildStrandSummary(objParametersBD,
>>>>>>
>>>> function(objSummary){
>>>>
>>>>>> objObjectiveSummary = objSummary;
>>>>>> displayStrandSummary();
>>>>>> });
>>>>>>
>>>>>> Where StrandSummary is my java class converted to dwr.
>>>>>>
>>>> objParametersBD
>>>>
>>>>>> and objObjectiveSummary are global javascript objects.
>>>>>>
>>>>>> The problem is when I call "buildStrandSummary" it is taking around
>>>>>> 20sec
>>>>>> to return me the callback.
>>>>>> When I checked the java classes, the entire logic and query building
>>>>>>
>>>> is
>>>>
>>>>>> beging done in around 2 sec.
>>>>>> In these classes there are around 8 getters and setters classes
>>>>>> invlolved.
>>>>>>
>>>>>> I just want to know the reason why this is taking time to return a
>>>>>> callback.
>>>>>>
>>>>>> Thanks in Advance,
>>>>>> Rizwan
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>>>>>>
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164423.html
>>>>
>>>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>>>> For additional commands, e-mail: users-help@...
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24164898.html
>>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>>
>>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
>
View this message in context: http://www.nabble.com/funtion-taking-time-to-return-Callback-tp24164423p24179286.html
Sent from the DWR - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...
« Return to Thread: funtion taking time to return Callback
| Free embeddable forum powered by Nabble | Forum Help |