Questo contenuto non è disponibile nella lingua selezionata.
Chapter 3. Avro
Serialize and deserialize messages using Apache Avro binary data format.
3.1. What’s inside Copia collegamentoCollegamento copiato negli appunti!
Please refer to the above link for usage and configuration details.
3.2. Maven coordinates Copia collegamentoCollegamento copiato negli appunti!
Create a new project with this extension on code.quarkus.redhat.com
Or add the coordinates to your existing project:
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-avro</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-avro</artifactId>
</dependency>
3.3. Additional Camel Quarkus configuration Copia collegamentoCollegamento copiato negli appunti!
Beyond standard usages known from vanilla Camel, Camel Quarkus adds the possibility to parse the Avro schema at build time both in JVM and Native mode.
The approach to generate Avro classes from Avro schema files is the one coined by the quarkus-avro extension. It requires the following:
-
Store
*.avscfiles in a folder namedsrc/main/avroorsrc/test/avro In addition to the usual
buildgoal ofquarkus-maven-plugin, add thegenerate-codegoal:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Please see a working configuration in Camel Quarkus Avro integration test and Quarkus Avro integration test.