Quarkus"

From Documentation
(Created page with "{{ZKDevelopersReferencePageHeader}} = Overview = Quarkus is a Java framework geared to create Kubernetes deployable applications, as well as cloud-based applications and se...")
 
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
 
= Quarkus specific configuration=  
 
= Quarkus specific configuration=  
 
== Websockets ==
 
== Websockets ==
{{versionSince| 10.1.0}}
+
{{versionSince| 10.1.0}} {{ZK_EE}}
 +
 
 
Starting from ZK 10.1.0, ZK provides a plugin to support quarkus-websockets.
 
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:
 
ZK Quarkus websocket support is activated by adding the zk-quarkus plugin to the project:
Line 32: Line 33:
  
 
To use Quarkus ArC / CDI Beans in ZK 10.0.0, please use the QuarkusCdiDelegatingVariableResolver available [https://tracker.zkoss.org/browse/ZK-5458 on this tracker ticket]
 
To use Quarkus ArC / CDI Beans in ZK 10.0.0, please use the QuarkusCdiDelegatingVariableResolver available [https://tracker.zkoss.org/browse/ZK-5458 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.
  
 
{{ZKDevelopersReferencePageFooter}}
 
{{ZKDevelopersReferencePageFooter}}

Latest revision as of 14:11, 23 December 2024


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

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

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.