The URLComparator can be used to specify a deployment ordering for deployments found in a scanned directory.
Two deployment comparators are shipped with JBoss: - org.jboss.deployment.DeploymentSorter Sorts by file extension, as follows:"sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip","*" - org.jboss.deployment.scanner.PrefixDeploymentSorter If the name portion of the url begins with 1 or more digits, those digits are converted to an int (ignoring leading zeroes), and files are deployed in that order. Files that do not start with any digits will be deployed first, and they will be sorted by extension as above with DeploymentSorter.
Open file jboss-service.xml in \server\default\conf and modify section "Deployment Scanning" as required.. Ex: Assume there are two apps in deplo folder aaa.ear and zzz.ear to change the deployment order of these apps, set names to 1zzz.ear and 2aaa.ear and select - org.jboss.deployment.scanner.PrefixDeploymentSorter in jboss-service.xml file.
1 comment:
The URLComparator can be used to specify a deployment ordering for deployments found in a scanned directory.
Two deployment comparators are shipped with JBoss:
- org.jboss.deployment.DeploymentSorter
Sorts by file extension, as follows:"sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip","*"
- org.jboss.deployment.scanner.PrefixDeploymentSorter
If the name portion of the url begins with 1 or more digits, those digits are converted to an int (ignoring leading zeroes), and files are deployed in that order. Files that do not start with any digits will be deployed first, and they will be sorted by extension as above with DeploymentSorter.
Open file jboss-service.xml in \server\default\conf and modify section "Deployment Scanning" as required..
Ex: Assume there are two apps in deplo folder aaa.ear and zzz.ear to change the deployment order of these apps, set names to 1zzz.ear and 2aaa.ear and select - org.jboss.deployment.scanner.PrefixDeploymentSorter in jboss-service.xml file.
Post a Comment