Quarkus

From Documentation
Revision as of 06:22, 23 December 2024 by Matthieu (talk | contribs)


Overview

Quarkus is a Java framework geared to create Kubernetes deployable applications, as well as cloud-based applications and self-contained services runnable from a single package (such as microservices)

For general information regarding ZK usage in Quarkus, please refer to the smalltalk Small Talks/2023/May/Creating and deploying ZK Apps with Quarkus

Quarkus specific configuration

Websockets

Since 10.1.0 Starting from ZK 10.1.0, ZK provides a plugin to support quarkus-websockets. ZK Quarkus websocket support is activated by adding the zk-quarkus plugin to the project:

<dependency>
	<groupId>org.zkoss.quarkus</groupId>
	<artifactId>zk-quarkus</artifactId>
	<version>1.0.0</version>
</dependency>

Then, websockets can be activated in the same way as other ZK applications. Refer to the websocket guide for more information.

ZK Developer's Reference/Integration/Miscellaneous/Websocket Channel

Quarkus ArC / CDI Beans

Quarkus ArC uses CDI bean resolution internally. Currently, the ZK CDI delegating resolver implementation is incompatible with the CDI version used by Quarkus.

To use Quarkus ArC / CDI Beans in ZK 10.0.0, please use the QuarkusCdiDelegatingVariableResolver available on this tracker ticket

Packaging

fast-jar

Quarkus fast-jar supports ZK.

Native executable

Quarkus native executable supports ZK.

Uber-Jar

Uber jar require unpacking all dependencies jar into the Uber-Jar package. As of ZK 10, this causes several conflicts between ZK configuration files. As a result, Quarkus Uber-Jar does not support by ZK.



Last Update : 2024/12/23

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.