This content has been marked as final.
Show 4 replies
-
1. Re: disable hot deploy
emuckenhuber Mar 3, 2009 2:53 PM (in response to iksrazal)You can remove the deploy/hdscanner-jboss-beans.xml - this will disable hot-deployment scanning. Although this will disable hd-scanning in general.
-
2. Re: disable hot deploy
jaikiran Mar 4, 2009 2:33 AM (in response to iksrazal)"emuckenhuber" wrote:
You can remove the deploy/hdscanner-jboss-beans.xml - this will disable hot-deployment scanning. Although this will disable hd-scanning in general.
I just looked at the org.jboss.system.server.profileservice.hotdeploy.HDScanner and i see that there's a setScanEnabled:public synchronized void setScanEnabled(boolean scanEnabled) { if( scanEnabled == true && activeScan == null ) { activeScan = this.scanExecutor.scheduleWithFixedDelay(this, 0, scanPeriod, TimeUnit.MILLISECONDS); } else if( scanEnabled == false && activeScan != null ) { activeScan.cancel(true); activeScan = null; } }
So instead of deleting a file (the hdscanner-jboss-beans.xml) from the AS installation, i think setting this property to false on the HDScanner MC bean (deploy/hdscanner-jboss-beans.xml) might do the trick:<bean name="HDScanner" class="org.jboss.system.server.profileservice.hotdeploy.HDScanner"> <property name="mainDeployer"><inject bean="MainDeployer"/></property> <property name="controller"><inject bean="jboss.kernel:service=KernelController"/></property> <property name="profileService"><inject bean="ProfileService"/></property> <property name="scanPeriod">5000</property> <property name="scanThreadName">HDScanner</property> <property name="scanEnabled">false</property> </bean>
-
3. Re: disable hot deploy
emuckenhuber Mar 4, 2009 4:43 AM (in response to iksrazal)Well setScanEnabled is more to cancel active scans and suspend HDScanner during runtime - so this won't have an effect on startup.
If you don't want to remove the hdscanner-jboss-beans.xml you could add:<start ignored="true"/>
-
4. Re: disable hot deploy
iksrazal Mar 4, 2009 3:29 PM (in response to iksrazal)Removing deploy/hdscanner-jboss-beans.xml worked fine for me, thanks!