Does GWT RPC use HTTP?

119 views
Skip to first unread message

Venu

unread,
Dec 7, 2008, 7:09:10 AM12/7/08
to Google Web Toolkit
Hi grp,

What port does GWT RPC mechanism use? Is it communicating over HTTP?
If not, what port does it use?

Thx

Suri

unread,
Dec 7, 2008, 6:12:26 PM12/7/08
to Google Web Toolkit
Hi Venu,
My understanding is that RPC is really a layer above the HTTP and if
you notice how it works, its not unlike another servlet call. The
serialization/deserialization has been abstracted to make life easier
for us. So, to answer your question, yes, it is communicating over
HTTP from where your webserver will pass it over to the servlet
container just like another servlet call. Hope that helps

Suri

mikeds...@gmail.com

unread,
Dec 7, 2008, 6:49:42 PM12/7/08
to Google Web Toolkit
And to follow up Suri's excellent description, I "think" it uses plain
old port 80, but it is definitely just HTTP. You are just using a
browser. If you want to be certain, fire up Wireshark (if you don't
have this tool on your machine, shame on you!) and watch on port 80.
Now that I'm typing it, I think you can configure Tomcat to use most
any port. I think we were using 8080 for a while. But the bottom
line is that it is just plain old HTTP.

Later,

Shaffer

Jason Essington

unread,
Dec 8, 2008, 12:02:02 PM12/8/08
to Google-We...@googlegroups.com
GWT-RPC uses the browsers XMLHTTPRequest mechanism. As such, it is
required to use the same protocol and port used to load your host page
(to avoid running afoul of the Same Origin Policy).

So, if your host page is loaded via HTTP port 80 the RPC uses HTTP
port 80 ... if you are in hosted mode (HTTP port 8888) then rpc uses
HTTP port 8888. If your host page was loaded via HTTPS port 443 then
GWT-RPC uses HTTPS port 443.

I think you should begin to see the pattern here.

-jason
Reply all
Reply to author
Forward
0 new messages