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

do some asynchronous action after current transaction commited in Quarkus

Let's say I have a rest call which creates some object "A" in the database. Method is marked with @Transactional annotation. And just after creation I need to launch another asynchronous process in another thread or through some messaging system or…
Dmitry Shohov
  • 322
  • 2
  • 9
1
vote
0 answers

How can I start H2 in Server Mode using Quarkus?

I use the H2 database in my development mode with Quarkus. When I need to access the Database with a client as DBeaver, I start the H2 in Mixed mode, like this: quarkus.datasource.jdbc.url=jdbc:h2:~/h2/oracle_test;MODE=Oracle;AUTO_SERVER=TRUE These…
Felipe Windmoller
  • 1,528
  • 1
  • 12
  • 24
1
vote
1 answer

Quarkus: MDC is not exposed in Azure Application Insights

how do I get the MDC information to show up in Azure Insights. Currently I only see it in the trace log. I am using: Quarkus 1.13.0.Final Application Insights 3.0 I have inserted the Application Insights according to these instructions => Java…
matt-rock
  • 133
  • 2
  • 14
1
vote
1 answer

How to convert Uni to json and then print it in the @interceptor

I have a simple resource , it return a Uni < Response > @POST @Path("/test2") public Uni test2(SampleEntity test) { List recordList = new ArrayList<>(); recordList.add(new SampleEntity("cat", 12)); …
jiayaoO3O
  • 53
  • 1
  • 5
1
vote
1 answer

How to return custom Error Response when item not found

Trying to send custom error message when item not found. ifNotNull case correct generate required response. But ifNull not generate required response (Always the response is empty with status code 200) AuthorService.java public Uni
user12330175
1
vote
2 answers

Junit5 Tag Annotation together with Quarkus QuarkusTestResource Annotation

How can QuarkusTestResource be used in conjunction with Tag Annotation? Example Test Routine import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import io.quarkus.test.common.QuarkusTestResource; import…
1
vote
0 answers

How to use Hibernate OData Quarkus

I have some given environmental components Frontend (call enpoint with odata string $filter....) Backend (MariaDB) MiddleTier (Quarkus with normal rest endpoints) I tried some OData Frameworks (Olingo, SDL OData Frameworks, odata4j), but always…
1
vote
1 answer

Injecting HttpRequest in RESTEasy Reactive / Quarkus fails

I'm currently trying to inject and read out the HttpRequest in Quarkus 1.13 but without any success. I'm using RESTEasy-Reactive for my endpoint. This is how I'm currently including it @Path("/users/{id}") class UserController( @Inject val…
Ahmet K
  • 713
  • 18
  • 42
1
vote
1 answer

Not possible to use Table aliases in Quarkus / Mutiny SqlClient?

I'm new to Quarkus and actually really excited to use it in my next project. One of my first steps was to configure a mysql connection and perform queries on it in a reactive way as shown here. I didn't want to use JPA/Hibernate so I didn't go for…
Ahmet K
  • 713
  • 18
  • 42
1
vote
1 answer

Kubernetes GRPC internal communication between services Connection refused

I'm trying to communicate via grpc between two microservices internally on kubernetes, but I'm getting a connection refused error. These are the yaml files of the services that are trying to communicate. --- apiVersion: v1 kind: Service metadata: …
MrDoekje
  • 63
  • 1
  • 7
1
vote
0 answers

Reactive on SSE payload on Quarkus trasmit only data field?

My example Code : @GET @Path("/reactive") @Produces(MediaType.SERVER_SENT_EVENTS) @RestSseElementType(MediaType.APPLICATION_JSON) public Multi reactive() { return Multi.createFrom().ticks().every(Duration.ofSeconds(1)) …
DaiNeko
  • 11
  • 1
1
vote
6 answers

Getting exception "Not using JDBC" while using quarkus-hibernate-reactive-panache with quarkus-reactive-mysql-client - (Quarkus 1.12.2.Final)

Quarkus 1.12.2.Final Getting the following exception while using reactive hibernate (quarkus-hibernate-reactive-panache) with reactive MySQL client (quarkus-reactive-mysql-client), kindly suggests what could be the issue. 2021-04-01 11:35:28,694…
Sabir Hussain
  • 175
  • 2
  • 9
1
vote
2 answers

How to register a bean in Quarkus Main method

I have a Quarkus application that works in batch mode. I have a QuarkusMain class, with a method that implements QuarkusApplication interface. That method is a static method, so I'm not able to inject Beans because they have a null value. What is…
Luisao
  • 455
  • 2
  • 9
  • 20
1
vote
1 answer

How to detect build time at runtime in Quarkus?

I am pretty new to Quarkus and I can't seem to find a way to obtain build information like build version or last built time at run time. Any insights will be appreciated.
Maggie
  • 13
  • 3
1
vote
1 answer

How to change quarkus-vertx eventBus ClusterManager options

I want to configure vertx at k8s by using hazelcast-kubernetes in Quarkus. I need configure event-bus like this: Config config = new Config(); config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false); …