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 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
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
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.
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.
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
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".
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.