更改.class文件时,是否可以将GAE的dev_appserver设置为自动重新加载上下文? [英] Can I set GAE's dev_appserver to automatically reload context when I change .class files?

查看:31
本文介绍了更改.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.

这篇关于更改.class文件时,是否可以将GAE的dev_appserver设置为自动重新加载上下文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆