Tomcat Auto Deploy功能这个好吗?

Mar*_*ada 5 tomcat tomcat6

我在生产服务器中下载并设置了Apache Tomcat 6.然后我开始查看它是否正在运行,并发现它没关系.

它运行然后我将我的项目war文件放在那里.当我注意到我的web存档文件已经解压缩并且我的项目web文件已经设置在web apps文件夹时,我将重新启动tomcat服务.

我想,我的设置有一个自动部署功能,但我一直在想这是不是一件好事?

我有这些问题:

  1. Tomcat是否真的自动部署Web归档文件,它的频率是多少?
  2. 这是一个很好的功能吗?
  3. So what if I leave my war file there, does that mean that Tomcat will reload or unzip the archive file every now and then?
  4. Is what Tomcat does to my war file the same as when I properly restart my tomcat and let the tomcat service deploy my war file?

min*_*das 9

看一下手册.它说:

如果Host autoDeploy属性为"true",则Host将尝试根据需要动态部署和更新Web应用程序,例如,如果将新的.WAR放入appBase中

这是否是一个很好的功能取决于您的要求.我工作的项目都不需要这个,但是嘿 - 你的故事可能会有所不同.

Autodeploy与你重新启动Tomcat的功能相同,它会找到一个.war,唯一的区别是必须有一个轮询线程来查找appBase文件夹中的更改.