更改.class文件时,是否可以将GAE的dev_appserver设置为自动重新加载上下文?
我正在将Google AppEngine和其内置的网络服务器一起使用.我的开发以一种简单的方式进行:我对.java源代码或.jsp进行了更改,并使用ant
进行了编译,并查看了必须重新启动开发服务器的更改.
I'm using Google AppEngine with their built in web server. My development goes about in a simple way: I make changes to my .java sources or .jsp and compile using ant
and to see the changes I have to restart the development server.
我想知道是否有办法避免重启开发服务器的最后一步-以某种方式刷新Web服务器的缓存类上下文. Google在此开发服务器上提供的选项非常有限,我想知道是否有更好的方法.
I'm wondering if there's a way I can avoid this last step of restarting my development server - somehow refresh the cached classes context of my web-server. The options provided by Google on this dev server are quite limited and am wondering if there's a better way.
我想避免使用类似我可以购买的JRebel之类的东西,但是对于这个简单的项目,我只是想知道是否可以消除重新启动Web服务器的负担...否则,我将继续使用它.
I would like to avoid using something like JRebel which I could buy, but for this simple project I'm just wondering if I can remove the burden of restarting my web-server... otherwise I'll live with it.
我意识到您可以触摸
appengine-web.xml
强制重新加载服务器上下文.同时加载
/_ah/reloadwebapp
下的页面将重新加载服务器上下文-即使
它会显示404,仍然会重新加载上下文.
I realized that you can just touch
appengine-web.xml
to force server context reload. Also loading the
page under /_ah/reloadwebapp
will reload the servers context - even if
it gives you a 404, it will still reload the context.