减少TomcatDeployer的间隔

时间:2012-05-10 14:21:06

标签: java deployment jboss jboss-4.2.x

如何减少TomcatDeployer扫描新工件的时间间隔?我正在使用JBoss 4.2.3。

1 个答案:

答案 0 :(得分:1)

由于您在JBoss中部署工件,因此您很可能会询问热部署扫描频率。

在JBossAS 4.2中,我相信您在server/$instance_name/conf/jboss-service.xml MBean的DeploymentScanner文件中设置热部署扫描频率:

 <!-- this is in milli-seconds, so 60000 ms means 60 seconds which is scanning every minute in the deploy folder for changes in the deployed packages -->
  <attribute name="ScanPeriod">60000</attribute>
  <attribute name="ScanEnabled">true</attribute>