I'm glad you qualified your comment with 'in general' which IMHO is still
not true and I believe it really depends on your use case. For instance, if
you are targeting App Engine you certainly want to leverage parallel async
calls because of the quota system that is enforced on Google's APIs and all
server requests and that is only one of numerous use cases that I can think
of that could benefit from using parallel async calls.

Jeff

On Thu, Jan 27, 2011 at 11:46 AM, Gal Dolber <[email protected]> wrote:

> Yes, it is possible, every rpc call is asyc, so if you call two rpc methods
> one after the other they'll be executed in parallel. In general it is better
> to batch the "parallel" methods in one rpc call.
>
> On Thu, Jan 27, 2011 at 1:41 PM, joe kolba <[email protected]> wrote:
>
>> Why not just make one call to a service and call different methods within
>> your service object?  You can put methods in your serviceImpl that are not
>> RPC methods.
>>
>>
>> On Thu, Jan 27, 2011 at 11:17 AM, ghost23 <[email protected]>wrote:
>>
>>> hello,
>>>
>>> i have a service. I create an instance of it via
>>> GWT.create(MyService.class). Then i call a method on it, get the
>>> result, everything works nicely.
>>>
>>> Now i need to call two methods on that service more or less in
>>> parallel. I tried this (either using the same service instance or two
>>> distinct ones),
>>> but now i get weird results, sometimes, the objects cannot be de-
>>> serialized or i get exceptions, that the objects are of another type
>>> and so on.
>>>
>>> Is it basically possible to make two parallel calls to a service?
>>>
>>> Thank you.
>>> Sven
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to [email protected]
>>> .
>>> To unsubscribe from this group, send email to
>>> [email protected]<google-web-toolkit%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-web-toolkit%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to