0

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

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

JBoss 会自动拾取它们吗?如果没有,告诉 JBoss 获取该文件夹中的文件的设置是什么?

Jboss 版本 4.2.2-GA。

谢谢!

4

1 回答 1

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>
于 2013-08-10T13:14:26.740 回答