开放自由特征

Open liberty features

我目前正在评估 Kumuluzee vs Wildfly Swarm vs OpenLiberty。我有一些问题:

  1. OpenLiberty除了maven还有Gradlesamples/plugin吗

  2. 是possible/documented如何用库扩展OL本身,而不是把它们放在web-inf/lib中。 (瘦战争)。如果可能,是否将此类 jar 排除在重新部署扫描之外(更快的开发周期)?

  3. 在许多情况下,人们希望在单个 jvm(反微服务)中部署多个 war。 server.xml文件中可以列举几个web应用程序吗?

  1. Does OpenLiberty have Gradle samples/plugin in addition to the maven one.

是的,有 gradle 和 Liberty 的 Maven 集成:

  1. Is it possible/documented how to extend OL itself with libraries, rather than putting them in web-inf/lib. (Skinny wars ). If possible, are such jars excluded from redeployment scans (faster dev cycles)?

是的,Liberty 有一个"shared libraries" 的概念,可以指向文件或文件夹。然后,共享库可以被应用程序引用。更多文档在这里:Shared Libraries

  1. In many cases one wants to deploy several wars in single jvm (anti-microservice). Can several web applications can you enumerate in the server.xml file?

是的,您可以拥有任意数量的应用程序。有两种主要方法可以将应用程序添加到服务器。

删除应用程序:
您可以将应用程序放入 ${server.config.dir}/dropins/ 文件夹,这不需要任何额外的服务器配置。

配置的应用程序:
您可以使用 <application/> 配置元素在 server.xml 中显式配置应用程序。有关详细信息,请参阅 Configuration elements 页面。

MicroProfile 展示应用程序已更新,您可以使用 Maven 或 Gradle 进行构建。 https://github.com/OpenLiberty/sample-mpconf

https://github.com/WASdev/ 中的相当一部分示例已在 10 月更新以显示使用 Gradle。他们不使用 Open Liberty 运行时 maven 坐标,但其中许多可以。