Can I set the GAE dev_appserver to automatically reload the context when modifying .class files?

I use Google AppEngine with my built-in web server. My development happens in a simple way: I make changes to my .java sources or .jsp and compile with ant, and to see the changes, I have to restart the development server.

I am wondering if there is a way to avoid this last step of restarting my development server - to somehow update the context of the cached classes of my web server. The options provided by Google on this dev server are quite limited, and I am wondering if there is a better way.

I would like to avoid using something like JRebel that I could buy, but for this simple project, I am just wondering if I can remove the burden of restarting my web server ... otherwise I will live with it.

+3
source share
2 answers

I realized that you can just touch appengine-web.xmlto force a reboot of the server. Also loading the page under /_ah/reloadwebappwill reload the server context - even if it gives you 404, it will still reload the context.

+4
source

In debug mode, the JVM can do some hot swapping - I know, and Intellij IDEA does it, I'm sure other debuggers in a different ID environment do it too.

(, -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:8000), .

, . Recompile voila, hot swapped jvm !

-. .

0

All Articles