Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why ?gwt.codesvr=127.0.0.1:9997 is appended to url?

Tags:

gwt

I am using ExtGWT. in development mode we append ?gwt.codesvr=127.0.0.1:9997 to url. please help what it means and why we should append?

Thanks!

like image 202
user755806 Avatar asked Aug 12 '11 09:08

user755806


1 Answers

When you're running your application in Development Mode, the browser (more precisely: The GWT plugin) needs to connect to a so-called "code server". The "gwt.codesvr" part is evaluated by that plugin, so it knows, how to connect to that code server.

The job of the code server is to emulate the JavaScript behaviour of the final code. It runs your client-side Java code, which is compiled to class files, but not yet to JavaScript files. This is a) a lot faster than compiling to JavaScript, and b) it allows you to use a Java debugger for the (emulated) client side code.

like image 64
Chris Lercher Avatar answered Nov 07 '22 20:11

Chris Lercher