如何减少 TomcatDeployer 的间隔正在扫描新的工件?我正在使用 JBoss 4.2.3。
最佳答案
由于您正在 JBoss 中部署工件,因此您很可能会询问热部署扫描频率。
在 JBossAS 4.2 中,我相信您在 server/$instance_name/conf/jboss-service.xml
文件中为 DeploymentScanner
MBean 设置了热部署扫描频率:
<!-- 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>
关于java - 减少TomcatDeployer的间隔,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10536037/