我们可以在JBoss的标准部署文件夹中创建一个新文件夹吗?

时间:2013-08-09 17:43:36

标签: java deployment jboss directory

我有几个我们项目需要的库。我想将我们的项目与Jboss server / default / deploy文件夹中已存在的其他现有jar / war / ear文件分开。

我正在考虑在该部署文件夹中创建一个新文件夹,并将所有项目文件/依赖项放入其中。

JBoss会自动接收它们吗?如果没有,告诉JBoss拿起该文件夹中的文件的设置是什么?

Jboss版本4.2.2-GA。

谢谢!

1 个答案:

答案 0 :(得分:0)

您应该检查部署扫描程序配置,该配置保存在server/<profile>/conf/jboss-service.xml中。相关部分是:

<mbean code="org.jboss.deployment.scanner.URLDeploymentScanner" name="jboss.deployment:type=DeploymentScanner,flavor=URL">
  ...    
  <!-- URLs are comma separated and resolve relative to the server home URL unless the given path is absolute. [...] -->
  <attribute name="URLs">
    deploy/
  </attribute>    
  ...    
  <!-- Indicates if the scanner should recursively scan directories that contain no "." in their names. [...] -->
  <attribute name="RecursiveSearch">True</attribute>
</mbean>