| <!-- A filter which controls the files that will be watched for changes for hot deployment |
|
| By default a org.jboss.system.server.profile.basic.PatternIncludeVirtualFileFilter is |
|
| configured to allow flexible control over the files that can be watched for hot deployments. |
|
| This PatternIncludeVirtualFileFilter accepts a regular expression and matches it against |
|
| the file name(s) in the metadata locations (WEB-INF or META-INF) to decide whether the |
|
| change to such file(s) should trigger a redeployment of the application |
| --> |
| <bean name="ModificationCheckerFilter" class="org.jboss.system.server.profile.basic.PatternIncludeVirtualFileFilter"> |
|
| <constructor> |
|
|
| <!-- Remember, the parameter is a regex so use the correct syntax |
|
|
|
| as below. Here we specify that we are interested in watching changes to |
|
|
|
| either application.xml, web.xml, ejb-jar.xml, any -service.xml, jboss-beans.xml |
|
|
|
| (which are all considered top level deployment descriptors) --> |
|
|
| <parameter class="java.lang.String">.*/(application|web|ejb-jar|(.)+-service|.*jboss-beans)\.xml$</parameter> |
|
| </constructor> |
| </bean> |