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
10
votes
1 answer

How do I set the logging level in Quarkus?

I would like to change the logging level of my Quarkus application. How can I do that either from the configuration file or at runtime?
geoand
  • 60,071
  • 24
  • 172
  • 190
10
votes
1 answer

How to make Quarkus to listen on all network interfaces instead of localhost?

When I run my Quarkus application it listens/binds to localhost only by default. How can I alter this behavior?
geoand
  • 60,071
  • 24
  • 172
  • 190
10
votes
2 answers

How can I override properties in Quarkus?

I would like to override the properties I have configured in my configuration file in my Quarkus application. How can I accomplish that?
geoand
  • 60,071
  • 24
  • 172
  • 190
9
votes
1 answer

Quarkus @QuarkusTest vs @QuarkusIntegrationTest

Apologies if it has been answered before, but I can't seem to find a good answer. What is the context of how @QuarkusTest runs versus QuarkusIntegrationTest? So far, all I got is the integration test runs against a packaged form of the app (.jar,…
Snappawapa
  • 1,697
  • 3
  • 20
  • 42
9
votes
1 answer

Quarkus: Disable Docker test containers?

I dusted off an old Java project implemented with Quarkus and updated the dependencies to Quarkus 2.4.0. However, I've noticed that when I start the application it also fires up a Docker PostgreSQL container. I have another DB for testing, so I…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
9
votes
1 answer

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…
RNH
  • 239
  • 1
  • 3
  • 13
9
votes
1 answer

Quarkus native image tests and injection

Quarkus doesn't allow injecting objects into a native image test (I do not understand why, but that's a separate topic). How am I supposed to write a test then, that relies on injected objects? In my case the non-native test gets a JPA EntityManager…
sithmein
  • 437
  • 3
  • 11
9
votes
3 answers

How to register bean programatically in Quarkus?

I am trying to find a way how to programatically create bean in quarkus DI, but without success. Is it possible in this framework? It seems that BeanManager does not implement the needed method yet.
Mejmo
  • 2,363
  • 9
  • 35
  • 54
9
votes
2 answers

Right way to start a worker thread with Quarkus?

I am implementing a Quarkus server. On server start, a (never ending) background process should be started. I know I can observe the start event with an @ApplicationScopedbean which implements: void onStart(@Observes StartupEvent ev). But what is…
Usul
  • 237
  • 3
  • 12
9
votes
2 answers

Quarkus Exception Handler

Does quarkus provides an exception handler? I wanted something like Spring's ControllerAdvice. https://www.baeldung.com/exception-handling-for-rest-with-spring
tcsdev
  • 191
  • 1
  • 2
  • 7
9
votes
3 answers

How to disable security in Quarkus

I´ve implemented JWT RBAC in my Quarkus application, but I don´t want to provide tokens whenever I´m testing my application locally. EDIT: What I´ve tried so far are setting these properties to "false" without any…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
9
votes
2 answers

How to override config property for one Unittest in Quarkus

In my Quarkus-Application an Observer of StartupEvent inserts default data into my database if a specific config-property is true. For one particular UnitTest I want my database to be empty. I would think that there is some way to override…
Obyoxar
  • 103
  • 2
  • 6
9
votes
1 answer

How to create a Jandex index in Quarkus for classes in a external module for Gradle

Based on the following maven configuration from this SO question, answered for Maven builds, I need an equivalent bit of code for a Gradle setup. Looking around, I can't find a setup that does this for Gradle. Synopsis of issue from other question:…
Snappawapa
  • 1,697
  • 3
  • 20
  • 42
9
votes
2 answers

Quarkus with custom main method

Is it possible to provide a custom main(String[] args) method for a Quarkus application? Or is there any other way to access the command line arguments? The use case would be to build a native image to be used as a command line tool.
Harald Wellmann
  • 12,615
  • 4
  • 41
  • 63
8
votes
2 answers

How to run Testcontainers with in-memory filesystem TMPFS set in Quarkus

I have the following issue. In order to speed up the integration test pipeline I want to run testcontainers with Quarkus with TMPFS option set. This will force testcontainers to run the DB with a in-memory file system. This can be easily done…
Arthur Klezovich
  • 2,595
  • 1
  • 13
  • 17