Questions tagged [quarkus]

A Kubernetes native Java stack tailored for GraalVM & OpenJDK HotSpot, crafted from the best of breed Java libraries and standards

Quarkus makes creating cloud-native container-first Java applications a productive and efficient experience.

Combine both the familiar imperative code and the non-blocking reactive style when developing applications.

Quarkus tailors your application for GraalVM and HotSpot. Amazingly fast boot time, incredibly low RSS memory (not just heap size!) offering near instant scale up and high density memory utilization in container orchestration platforms like Kubernetes. We use a technique we call compile time boot.

./my-native-java-rest-app

Quarkus started in 0.008s

A cohesive platform for optimized developer joy:

  • Unified configuration
  • Zero configuration, live reload in the blink of an eye
  • Streamlined code for the 80% common usages, flexible for the 20%
  • No hassle native executable generation

Quarkus brings a cohesive, fun to use full-stack framework by leveraging best of breed libraries you love and use wired on a standard backbone.

Useful links:

3982 questions
1
vote
2 answers

Can I use Kotlin Arrow-lib with Quarkus in native builds

I started a new Kotlin project and i want to use the arrow-kt core Lib in combination with Quarkus (1.12.2). I want to use the native compilation feature of Quarkus with the GraalVM. My first thought was that arrow is a simple lib without reflection…
Alex
  • 80
  • 6
1
vote
0 answers

How can I add a timeout to a a `multi` in Smallrye Mutiny?

In Smallrye Mutiny, I can add a timeout to a Uni using something like: uni.ifNoItem().after(Duration.ofMinutes(5)).fail() I searched for a similar API for a Multi but couldn't find any. Features I would have expected are: do something if no item…
lbilger
  • 304
  • 1
  • 8
1
vote
0 answers

Masking passwords in Quarkus with default JBoss logger

In a Quarkus application i do some http calls where username and password are in the URL as query parameters (3rd party, I can't change this). The problem is, that the JBoss logger in DEBUG mode prints the call to the logfile and/or console with…
PhiWu
  • 11
  • 2
1
vote
1 answer

Should I wrap @ConfigProperty fields in a javax.enterprise.inject.Instance object?

In my quarkus project I inject several ConfigProperty in filters (ContainerRequestFilter, ContainerResponseFilter). This gives me the following warning on startup: [io.qua.res.com.dep.ResteasyCommonProcessor] (build-46) Directly injecting a…
Fab
  • 135
  • 9
1
vote
1 answer

Connect MyRequestService to Reactive REST GET endpoint with Quarkus/Mutiny through callback method

Last week i had my first ✨ rounds with the Mutiny library because i needed a Reactive REST endpoint in my Quarkus project. This was not as obvious as it sounds so i thought i'll share my new insights about the Mutiny library in Quarkus; Quarkus…
Roland Beuker
  • 354
  • 1
  • 15
1
vote
0 answers

Garbage Collector as Bottleneck in Java

My application receives 10~ requests/milliseconds (10000 req/s), but sometimes I need to reload a file (30MB~) to the memory (hashMap) and after that the gc stops for 1s~ to collect the old hashMap. In this time, many requests received timeout…
1
vote
1 answer

Quarkus: Transaction-Listener

Is there a way to register a transaction-listener so I can activate a filter on Hibernate-Session when a transaction starts? I managed to develop a producer for EntityManager for the same purpose, but this does not seem to work if a new transaction…
Simon Wick
  • 249
  • 1
  • 11
1
vote
1 answer

How to access maven.build.timestamp for resource filtering in Quarkus

Accessing the version and name of the application works fine. But I also want to access the build date/time of a Quarkus application using maven. I know, there is a post for this already but I don't get it to work for Quarkus. I have an…
XHotSniperX
  • 712
  • 7
  • 25
1
vote
0 answers

JUNIT NOT USING src/test/resources while running the test case in quarkus

I have specified the storage dir in application.properties file. %test.storage.dir=src/test/resources But while running the test case it is not accessing the files in resource folder. I have the same path specified for development also and getting…
Vaishali
  • 21
  • 2
1
vote
0 answers

Is there a way to order @Path in Quarkus

I currently have a problem similar to this but in quarkus-resteasy. I have looked around and I cannot find a way to order the paths. The endpoint for getAllNotifications() is never selected, all requests go to…
FourtyTwo
  • 734
  • 8
  • 19
1
vote
1 answer

how to set the fetch size when using quarkus reactive pg client

I would like to control the fetch size in querying the Postgres DB. I am able to do so with the plain jdbc, but with the quarkus reactive postgres client, I cannot find such an option. Anyone knows how to configure fetch size with this client?
GeauxEric
  • 2,814
  • 6
  • 26
  • 33
1
vote
1 answer

Getting the field issuedFor from SecurityIdentity using OIDC and KeyCloak

I am using OIDC and KeyCloak Quarkus extensions. Currently, I access the token information like this: @Inject org.eclipse.microprofile.jwt.JsonWebToken tokenMicroProfile; @Inject SecurityIdentity securityIdentity; I could not find the issuedFor…
AmsterdamLuis
  • 341
  • 3
  • 21
1
vote
0 answers

How to override JWT token clocks for tests in Quarkus

I would like to test how tokens behave and verified in future instants of time. For this I made custom io.jsonwebtoken.Clock which I wish to set at some fixed clocks during tests. How to inject this class in the process of token verification?
Dims
  • 47,675
  • 117
  • 331
  • 600
1
vote
1 answer

How set up Quarkus spring Hibernate and multitenant?

Good morning, I'm trying to set up a QUARKUS project with spring, hibernate and multitenant. But not change schemas on run query? How to set up the configuration so that the query runs on the correct expected schema…
1
vote
1 answer

Mapstruct results in "unrecommended usage of private members" warning by quarkus-maven-plugin

How to resolve the following warning from the quarkus maven plugin? Found unrecommended usage of private members (use package-private instead) in application beans My code looks like this: @Mapper(componentModel = "cdi", uses =…