Тёмный

How to Create a Quarkus Extension 

Sebastian Daschner
Подписаться 18 тыс.
Просмотров 2,9 тыс.
50% 1

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
@everson8771
@everson8771 3 месяца назад
hello excellent video, could you do one teaching how to create an extension in quarkus, to send messages to kafka? step by step on how to make a custom extension.
@SebastianDaschnerIT
@SebastianDaschnerIT 3 месяца назад
There is a quite elaborate Kafka support in Quarkus: quarkus.io/guides/kafka What are you trying to achieve beyond this?
@everson8771
@everson8771 3 месяца назад
@@SebastianDaschnerIT is that this extension, if there is a problem in the Kafka cluster, breaks the microservice, which I am building, so I was looking for content to overcome this situation
@Mom-qy8vf
@Mom-qy8vf Год назад
Does including a rest client in the extension need additional build steps?
@cagrbiyik7355
@cagrbiyik7355 Год назад
i am looking for answer to this question.
@SebastianDaschnerIT
@SebastianDaschnerIT Год назад
You likely need to define the Quarkus dependency (e.g. rest-client) in the project (similar to what you'd do in your code) and if you have another bean, you can define that with AdditionalBeanBuildItem
@MrWillcode4food
@MrWillcode4food Год назад
Shuld quarkus version of the extension strictly match the version used in main application? Let's say an extension was compiled with quarkus 2.14 and added to the app based on quarkus 2.16? Or same versions missmatch, but more tricky: custom extension uses some standard quarkus extension.
@SebastianDaschnerIT
@SebastianDaschnerIT Год назад
Good question, it doesn't have to strictly match, as long as there are no breaking changes. With dependencies to official Quarkus extensions it depends a bit, my first attempt would be to document this and have it as provided dependency in the extension project (e.g. rely that the app projects will have the dependency). One can also add it as regular dependency, but then there might be version collisions if the project Quarkus version was different from the extension Q version.
@IvelinYanev
@IvelinYanev Год назад
Hi Sebastion, why you don't use jandex plugin in your extension?
@SebastianDaschnerIT
@SebastianDaschnerIT Год назад
For my use case that wasn't required, the extension defines all the beans as build item steps
@b0roovka
@b0roovka Год назад
Hello, really nice tutorial. Do you know how to write a Quarkus extension in Kotlin?
@tejaswinithota8449
@tejaswinithota8449 Год назад
Hi, I am trying to add hapi fhir dependencies. In my local app is working fine but when I deploy it to openshift serverless , I am getting this error: exception: java.lang.IllegalStateException: Could not find the HAPI-FHIR structure JAR on the classpath for version DSTU3. Note that as of HAPI-FHIR v0.8, a separate FHIR strcture JAR must be added to your classpath (or project pom.xml if you are using Maven) at ca.uhn.fhir.context.FhirContext.(FhirContext.java:150) at ca.uhn.fhir.context.FhirContext.(FhirContext.java:142) at ca.uhn.fhir.context.FhirContext.forDstu3(FhirContext.java:914) at me.daniel.service.HTService.processHomeTreatment(HTService.java:60) at me.daniel.service.HTService.consume(HTService.java:39) at me.daniel.service.HTService_ClientProxy.consume(HTService_ClientProxy.zig:187) at Do I have to write extension for this? FHIR depencies I have in my project: ca.uhn.hapi.fhir hapi-fhir-structures-dstu3 ${hapi.fhir.version} ca.uhn.hapi.fhir hapi-fhir-base ${hapi.fhir.version} ca.uhn.hapi.fhir hapi-fhir-client ${hapi.fhir.version} hapi.fhir.version =5.0.0 I am trying to get FhirContext from: FhirContext fhirContext = FhirContext.forDstu3(); Can you please suggest
@fhisg
@fhisg Год назад
I really don't understand why this blink thingy would need to be an extension. It doesn't use any features of the Quarkus extension mechanism AFAICS. That could be a regular external dependency in a JAR file (i.e. lib with 1 class) providing an application scoped bean at runtime. What did I miss? It's cool I learned about the blink1 USB dongle but I didn't learn much at all about Quarkus extensions. Maybe this is somehow like in the Quarkus "Building my first extension" guide. The disclaimer at the top there says "To be sure it’s extra clear you don’t need an extension to add a Servlet to your application. This guide is a simplified example to explain the concepts of extensions development".
@SebastianDaschnerIT
@SebastianDaschnerIT Год назад
If you'd just add a JAR library, you get all the code of that library, but OOTB, you're not able to inject beans (they would be ignored). In order to provide beans, or custom configuration option in your .application file, you'd need an extension which is shown. So every time, you'd like to have Quarkus-specific stuff (beans, config, events, integration, life cycle, etc.), one needs an extension.
Далее
Updating Quarkus Projects to Version 3.0
9:53
Просмотров 2,2 тыс.
▼ЮТУБ ВСЁ, Я НА ЗАВОД 🚧⛔
30:49
Просмотров 519 тыс.
Vim Tips I Wish I Knew Earlier
23:00
Просмотров 63 тыс.
Persistence With Quarkus Panache
14:48
Просмотров 6 тыс.
Quarkus Insights #43: Writing Quarkus Extensions
1:04:08
Просмотров 2,4 тыс.
How to Init Databases With Quarkus
25:23
Просмотров 4,9 тыс.
Quarkus Panache Active Record vs. Repository Pattern
14:32
Using Maven Efficiently
28:18
Просмотров 6 тыс.
▼ЮТУБ ВСЁ, Я НА ЗАВОД 🚧⛔
30:49
Просмотров 519 тыс.