Monday, 10 March 2008

JBoss Deployment Order

JBoss by default deploys ear files before war files, but if you want to have this changed, here is how to do it:
  • Edit C:\jboss-4.2.0.GA\server\default\conf\xmdesc\org.jboss.deployment.MainDeployer-xmbean.xml
  • Look for EnhancedSuffixOrder
  • Under descriptors tag, there is a value tag, and you would see "value" attribute
  • Change the priority of the file type that you want. The format is "priority:file type" (the bigger the number, the lower the priority)
blog comments powered by Disqus