开发者

Gwt Hosted Mode Server Side Reloading

Whenever I made code changes in GWT client side files I can just reload the browser or press "reload webserver" and the changes will b开发者_如何学运维e applied instantly. However, it doesn't work like that when I update my server side codes which means I have to stop the module and re-run it again which can take sometime. Is it suppose to happen like that? Is there anyway for the hosted mode to update instantly when I update server side code like client side?

Thanks


The "reload webserver" button is what you're looking for: it "reloads" all the classes from your war/WEB-INF (classes and lib) and basically restarts your webapp.

If it doesn't work for you, then maybe it's because you don't compile your classes to your war/WEB-INF/classes and/or have them in the DevMode's classpath (you should then see warnings in the DevMode window saying the code wasn't loaded from the webapp but from the parent classloader).


It is typical for server side code. Server code is run in Jetty and as far as I know it doesn't have option to reload automatically, though Tomcat has, so you could potentially run it in external server - there is such option.

One hint - don't stop and start, just use reload button (looks like refresh). It is much faster.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜