Can I Hot Deploy JAR Archives in Lib Directory?
No, you cannot. The deployment of archives from the
server/<config-name>/lib
directory is static. This means there are no watches on the files loaded by JBoss in this directory. Even if you do replace the archive, the change is never picked up.
Files that are hot deployable are those placed in directories watched by the DeploymentScanner. In the default configuration the deployment scanner only watches one directory --
server/<config-name>/deploy
. If you wish to deploy a library that ought to be hot deployable you can place it in the
server/<config-name>/deploy
directory instead. There's no requirement for all JAR archives to be placed in the
lib
dir.
Comments