I have a Qurkus application which I run in Dev mode: I have an issue that Quarkus reloads classes also when I don’t want it to (dependent project updated, etc) which takes quite a lot of time. Question: Is there a way to disable live reloading in dev mode? I went through the Quarkus documentation, but c…
Tag: quarkus
How to get URI of current request?
I need to resolve URI of current request in Quarkus (I use Quarkus 1.13). I use RESTEasy as my rest framework. Current request URI is needed in my case to validate Mandrill webhook call. Simplified my current implementation looks like: Answer RESTEasy is implementation of JAX-RS and it provides facilities for…
Batch insert entities to DB (Quarkus, Hibernate)
First off: I’m not used to Quarkus or Hibernate (I’m pretty much all .net) Problem: My service receives a list of ~10k (Would guess thats the most common number). This comes via a resource endpoint, and it takes +10s for it to complete, Far to long. And the service is unresponsive. The statusDao.C…
Quarkus Reactive – Multiple matching properties for name “security.jaxrs.deny-unannotated-endpoints” Error
Using Quarkus I get the following error at execution time: Caused by: java.lang.IllegalArgumentException: Multiple matching properties for name “security.jaxrs.deny-unannotated-endpoints” property was matched by both public boolean io.quarkus.resteasy.reactive.common.runtime.JaxRsSecurityConfig.de…
Uni.combine().all().unis() v.s. Multi..onItem().transformToMultiAndConcatenate().collect()
In my Quarkus service, I need to fetch a list of results from external service, and I figured out there are two methods to achieve the same goal: 1st approach based on Uni.combine().all(): 2nd approach based on Multi..onItem().transformToMultiAndConcatenate().collect() In the beginning I don’t think the…
Quarkus Maven Plugin not building anymore
For some reason the backend of our Application does not build correctly: Error message While using mvn clean install still works mvn compile quarkus:dev -pl web does not, throwing the following error message during the build of quarkus-maven-plugin:1.11.3.Final:dev: This continues with increasing time interva…
How to set up different graalvm-home and java-home in CI server to build native image
Issue: I want has two graalvm version in same CI server to build different quarkus version service project. resason: Because a few old service use quarkus-1.5.1 & graalvm-20.0.0 and I can’t upgrade that version. but I want use quarkus-1.13.1 & graalvm-21.0.0 in new service. tried: add quarkus.na…
How to call long running blocking void returning method with Mutiny reactive programming?
I have a chain of Async and Sync method invocation on Mutiny’s Uni, some methods are a long-running process with return type void. What is the proper way of invoking/calling them without blocking downstream? Below is the simple analogy code. Answer In general, use runSubscriptionOn and pass a specific e…
How adap Sleuth headers to make them compatible with OpenTracing
I’m working on a big stack of micro services written in Spring Boot, those services are using spring-cloud-starter-sleuth in order to trace the calls between several services. My concern is that I have implemented a new service based on Quarkus and the quarkus-smallrye-opentracing doesn’t recogniz…
Send a simple POST request from Quarkus/Java
I want to send a simple POST request to another application to trigger some action there. I have a quarkus project and want to send the request from inside my CreateEntryHandler – is this possible in a simple way? Or do I need to add something like Apache Httpclient to my project? Does it make sense in …