In GWT in order to run the application in hosted mode "dev mode" you append get.codesvr parameter to the url as you can see below.
/?gwt.codesvr=127.0.0.1:9997
First question is I want to know how does GWT know when to start a JVM instance to serve .class files instead of compiled JavaScript files? I can't seem to find how GWT works in dev mode. I do find main( ) in com.google.gwt.devDevMode. How does this main( ) be called?
Second question is in the documentation it says that GWT devmode run with Jetty server, however I see actual JavaScript in browser. How does this jetty server outputs JavaScript from .class files of the client side code?
Thanks.
All the magic done through Sockets and the Browser Plugin.
Design: Out of Process Hosted Mode (OOPHM)
Here is the Essential part.
Consider the following GWT code: