Re: How AsyncCallback works? - RPC services

2011-02-27 Thread dreamer
Thanks Sri. Sounds like very basic implementation. Each browser
implementation could vary, not sure.
At least, latest versions should have true async implementations.

Thread waiting, I wrote few programs like that. It won't scale. I am
sure it won't be that simple.


On Feb 26, 11:08 am, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 Here's how it works :

    1. Javascript code uses XmlHttpRequest API to start an AJAX call.
    2. Browser intercepts XmlHttpRequest method invocation
    3. Browser makes a http connection to the server in a *separate thread*.
    This way, the main user interface thread is not blocked.
    4. When the http response is available, the browser invokes the AJAX
    callback as part of the main user interface thread.

 Key takeaways -

    - There is no polling or IP based tracking.
    - The underlying HTTP call is always synchronous.
    - The browser invokes the callback only when the response is available,
    which is why we say AJAX is asynchronous

 --Sri

 On 26 February 2011 22:59, dreamer venugopal.vasire...@gmail.com wrote:







  Thanks Jeff.these are programming details. But how AJAX is
  implemented, like is it polling or true call back, using peer to peer
  techniques, such details
  not available.

  On Feb 26, 9:14 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
   I googled  found the following:

   Ajax intro:http://www.javalobby.org/articles/ajax/

   Google RPC doc:
 http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html

   On Sat, Feb 26, 2011 at 12:01 PM, dreamer venugopal.vasire...@gmail.com
  wrote:

True. Not found this kind of details. May be some gwt contributor
should be having  good Idea about these.

On Feb 25, 6:53 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
 RPC uses Ajax so understanding how Ajax works will answer all your
 questions.

 On Fri, Feb 25, 2011 at 9:49 AM, dreamer 
  venugopal.vasire...@gmail.com
wrote:

  Hi,

  Not sure how the AsyncCallback works in GWT. Could somebody share
  please?

  1) Will it create a thread and polls the server ?
          or
  2) Will servers register's client IP and when result is available
  makes a fresh TCP/IP connection to client
     and calls client.

     Within this call back, will server calls a method on skeleton
  (server side stubs) for remote call ?
        or
     It just makes a tcp call and client handles calling the Async
  method ?

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

 --
 *Jeff Schwartz*
   http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschw.
  ..
 follow me on twitter: @jefftschwartz

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

   --
   *Jeff Schwartz*
 http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschw...
   follow me on twitter: @jefftschwartz

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How AsyncCallback works? - RPC services

2011-02-26 Thread dreamer

True. Not found this kind of details. May be some gwt contributor
should be having  good Idea about these.


On Feb 25, 6:53 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
 RPC uses Ajax so understanding how Ajax works will answer all your
 questions.

 On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.comwrote:









  Hi,

  Not sure how the AsyncCallback works in GWT. Could somebody share
  please?

  1) Will it create a thread and polls the server ?
          or
  2) Will servers register's client IP and when result is available
  makes a fresh TCP/IP connection to client
     and calls client.

     Within this call back, will server calls a method on skeleton
  (server side stubs) for remote call ?
        or
     It just makes a tcp call and client handles calling the Async
  method ?

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

 --
 *Jeff 
 Schwartz*http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschwartz
 follow me on twitter: @jefftschwartz

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



Re: How AsyncCallback works? - RPC services

2011-02-26 Thread Jeff Schwartz
I googled  found the following:

Ajax intro:
http://www.javalobby.org/articles/ajax/

Google RPC doc:
http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html

On Sat, Feb 26, 2011 at 12:01 PM, dreamer venugopal.vasire...@gmail.comwrote:


 True. Not found this kind of details. May be some gwt contributor
 should be having  good Idea about these.


 On Feb 25, 6:53 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
  RPC uses Ajax so understanding how Ajax works will answer all your
  questions.
 
  On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.com
 wrote:
 
 
 
 
 
 
 
 
 
   Hi,
 
   Not sure how the AsyncCallback works in GWT. Could somebody share
   please?
 
   1) Will it create a thread and polls the server ?
   or
   2) Will servers register's client IP and when result is available
   makes a fresh TCP/IP connection to client
  and calls client.
 
  Within this call back, will server calls a method on skeleton
   (server side stubs) for remote call ?
 or
  It just makes a tcp call and client handles calling the Async
   method ?
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  *Jeff Schwartz*
 http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschwartz
  follow me on twitter: @jefftschwartz

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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

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



Re: How AsyncCallback works? - RPC services

2011-02-26 Thread dreamer
Thanks Jeff.these are programming details. But how AJAX is
implemented, like is it polling or true call back, using peer to peer
techniques, such details
not available.

On Feb 26, 9:14 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
 I googled  found the following:

 Ajax intro:http://www.javalobby.org/articles/ajax/

 Google RPC doc:http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html

 On Sat, Feb 26, 2011 at 12:01 PM, dreamer 
 venugopal.vasire...@gmail.comwrote:











  True. Not found this kind of details. May be some gwt contributor
  should be having  good Idea about these.

  On Feb 25, 6:53 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
   RPC uses Ajax so understanding how Ajax works will answer all your
   questions.

   On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.com
  wrote:

Hi,

Not sure how the AsyncCallback works in GWT. Could somebody share
please?

1) Will it create a thread and polls the server ?
        or
2) Will servers register's client IP and when result is available
makes a fresh TCP/IP connection to client
   and calls client.

   Within this call back, will server calls a method on skeleton
(server side stubs) for remote call ?
      or
   It just makes a tcp call and client handles calling the Async
method ?

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

   --
   *Jeff Schwartz*
 http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschw...
   follow me on twitter: @jefftschwartz

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

 --
 *Jeff 
 Schwartz*http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschwartz
 follow me on twitter: @jefftschwartz

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



Re: How AsyncCallback works? - RPC services

2011-02-26 Thread Sripathi Krishnan
Here's how it works :

   1. Javascript code uses XmlHttpRequest API to start an AJAX call.
   2. Browser intercepts XmlHttpRequest method invocation
   3. Browser makes a http connection to the server in a *separate thread*.
   This way, the main user interface thread is not blocked.
   4. When the http response is available, the browser invokes the AJAX
   callback as part of the main user interface thread.

Key takeaways -

   - There is no polling or IP based tracking.
   - The underlying HTTP call is always synchronous.
   - The browser invokes the callback only when the response is available,
   which is why we say AJAX is asynchronous

--Sri


On 26 February 2011 22:59, dreamer venugopal.vasire...@gmail.com wrote:

 Thanks Jeff.these are programming details. But how AJAX is
 implemented, like is it polling or true call back, using peer to peer
 techniques, such details
 not available.

 On Feb 26, 9:14 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
  I googled  found the following:
 
  Ajax intro:http://www.javalobby.org/articles/ajax/
 
  Google RPC doc:
 http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html
 
  On Sat, Feb 26, 2011 at 12:01 PM, dreamer venugopal.vasire...@gmail.com
 wrote:
 
 
 
 
 
 
 
 
 
 
 
   True. Not found this kind of details. May be some gwt contributor
   should be having  good Idea about these.
 
   On Feb 25, 6:53 am, Jeff Schwartz jefftschwa...@gmail.com wrote:
RPC uses Ajax so understanding how Ajax works will answer all your
questions.
 
On Fri, Feb 25, 2011 at 9:49 AM, dreamer 
 venugopal.vasire...@gmail.com
   wrote:
 
 Hi,
 
 Not sure how the AsyncCallback works in GWT. Could somebody share
 please?
 
 1) Will it create a thread and polls the server ?
 or
 2) Will servers register's client IP and when result is available
 makes a fresh TCP/IP connection to client
and calls client.
 
Within this call back, will server calls a method on skeleton
 (server side stubs) for remote call ?
   or
It just makes a tcp call and client handles calling the Async
 method ?
 
 --
 You received this message because you are subscribed to the Google
   Groups
 Google Web Toolkit group.
 To post to this group, send email to
   google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
 
--
*Jeff Schwartz*
  http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschw.
 ..
follow me on twitter: @jefftschwartz
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  *Jeff Schwartz*
 http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschwartz
  follow me on twitter: @jefftschwartz

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How AsyncCallback works? - RPC services

2011-02-25 Thread dreamer
Hi,

Not sure how the AsyncCallback works in GWT. Could somebody share
please?

1) Will it create a thread and polls the server ?
 or
2) Will servers register's client IP and when result is available
makes a fresh TCP/IP connection to client
and calls client.

Within this call back, will server calls a method on skeleton
(server side stubs) for remote call ?
   or
It just makes a tcp call and client handles calling the Async
method ?


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



Re: How AsyncCallback works? - RPC services

2011-02-25 Thread Jeff Schwartz
RPC uses Ajax so understanding how Ajax works will answer all your
questions.

On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.comwrote:

 Hi,

 Not sure how the AsyncCallback works in GWT. Could somebody share
 please?

 1) Will it create a thread and polls the server ?
 or
 2) Will servers register's client IP and when result is available
 makes a fresh TCP/IP connection to client
and calls client.

Within this call back, will server calls a method on skeleton
 (server side stubs) for remote call ?
   or
It just makes a tcp call and client handles calling the Async
 method ?


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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

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