自由移民
Liberty migration
我试图将我的项目从 WebSphere 8.0.0.12 迁移到 Liberty 服务器。我试图通过解决 IBM 迁移工具生成的分析报告中提到的问题来实现此迁移。其中一个问题是第三方 API 在 Liberty 上不可用。我的问题是这些库已经存在于我的项目的 lib 文件夹中,因此如何添加这些 jar 文件以供自由使用。它应该添加到 server.xml 或 applicationconfig.xml 中。我真的很困惑。
谢谢,
如前所述here
,您需要向 server.xml 添加一个库元素
Liberty libraries have three elements; folder, file, and fileset. For example:
<library>
<folder dir="..." />
<file name="..." />
<fileset dir="..." includes="*.jar" scanInterval="5s" />
</library>
A specified file must be a container for the resource (for example a JAR file) rather than the resource itself.
If an element in the list is a file, the contents of that JAR or compressed .zip file are searched. If a folder is specified then resources are loaded from that directory.
例如,您可以使用以下方法添加 Derby:
<library id="DerbyLibrary">
<fileset dir="${server.config.dir}/lib" includes="derby.jar"/>
</library>
我试图将我的项目从 WebSphere 8.0.0.12 迁移到 Liberty 服务器。我试图通过解决 IBM 迁移工具生成的分析报告中提到的问题来实现此迁移。其中一个问题是第三方 API 在 Liberty 上不可用。我的问题是这些库已经存在于我的项目的 lib 文件夹中,因此如何添加这些 jar 文件以供自由使用。它应该添加到 server.xml 或 applicationconfig.xml 中。我真的很困惑。
谢谢,
如前所述here
,您需要向 server.xml 添加一个库元素Liberty libraries have three elements; folder, file, and fileset. For example:
<library>
<folder dir="..." />
<file name="..." />
<fileset dir="..." includes="*.jar" scanInterval="5s" />
</library>
A specified file must be a container for the resource (for example a JAR file) rather than the resource itself.
If an element in the list is a file, the contents of that JAR or compressed .zip file are searched. If a folder is specified then resources are loaded from that directory.
例如,您可以使用以下方法添加 Derby:
<library id="DerbyLibrary">
<fileset dir="${server.config.dir}/lib" includes="derby.jar"/>
</library>