Skip to content
Advertisement

Tag: quarkus

How to disable live reloading in Quarkus?

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 couldn’t find if there

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 obtaining and processing information about the context of individual

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.Create() is annotated with @Transactional: DAO is @ApplicationScoped

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.denyJaxRs and public boolean io.quarkus.resteasy.runtime.JaxRsSecurityConfig.denyJaxRs. This is likely because you have an incompatible combination of extensions that both define the same properties (e.g. including both reactive and blocking database extensions) My pom properties are:

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 there exists any true difference between the two approaches, as Uni are evaluated lazily and either

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 intervals. Steps Taken I already checked if the SQL Docker Container is offline, but it started as

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.native.graalvm-home & quarkus.native.java-home in the pom.xml, setting graalvm path, but not working. Answer All

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 executor: Note that it will constraint the concurrency to the number

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 recognize header sent by Sleuth. I cannot modify the existing services using Sleuth and so I’m

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 combination with quarkus?

Advertisement