Questions tagged [smallrye]

SmallRye is community providing APIs and implementations tailored for Cloud development mostly, but not limited, to the specifications. The implemented APIs are tailored for Cloud Native development and container deployment.

Here you can find the main, Eclipse Microprofile, implemented specifications and their current status / version.

SmallRye provides many other community APIs such as [mutiny], which is another (yes) reactive API for the Java language.

160 questions
1
vote
0 answers

Quarkus GraphQL Authentication

I havea Quarkus Java application. It serves my GraphQL API. I would like to authenticate requests with JsonWebTokens (JWT). I know that smallrye-graphql already has some built-in JWT functionality. But I need to extend that. I need to add a custom…
Robert
  • 1,579
  • 1
  • 21
  • 36
1
vote
1 answer

Swagger UI is not working with quarkus AWS lambda application

Swagger UI (quarkus-smallrye-openapi) is not working with quarkus AWS lambda application. swagger-ui-bundle.js is not loading and results in an 502 error: /q/swagger-ui/swagger-ui-bundle.js I am using '2.7.5.Final'. I have seen that some docs says…
Naga Syamala
  • 41
  • 1
  • 5
1
vote
1 answer

How to overwrite config in a Quarkus extension

Is there a way to overwrite a configuration in a Quarkus extension with a hard-coded value? What I'm trying to do: I am creating a custom Quarkus extension for JSON logging, based on quarkus-logging-json but with additional (non static) fields. I…
Sof42lxca
  • 65
  • 5
1
vote
0 answers

Getting variables from application.properties using SmallRyeConfig in quarkus fails

I followed this documentation to get configs from application.properties in a quarkus service. I am not using CDI, so here is what I am doing to get this…
Luiz Henrique
  • 877
  • 8
  • 25
1
vote
0 answers

Is there a way to monitor Health Check of an application in Grafana?

I want to monitor the health check of a Java application in Grafana. (the liveness and readiness) I used smallrye-health. There is a way to see in Grafana if the app is healthy or not? and Ready or not? Thanks. Blackbox exporter can query endpoints…
1
vote
1 answer

Send a custom error message in smallrye-graphql error (quarkus)

I am trying to throw a custom exception in graphql but was only able to change extensions of the GraphQlError, and I want to change the error message too. Have a look, public class SomeException extends RuntimeException implements GraphQLError { …
1
vote
1 answer

How to concatenate 2 different types of streams using Smallrye Mutiny Multi?

I would like to concatenate 2 OutputStream of different types using the method Multi.createBy().concatenating().streams. Is there a way to achieve this? I have 2 streams one is of ByteArrayOutputStream and other is of custom type CustomerEvent and I…
BATMAN_2008
  • 2,788
  • 3
  • 31
  • 98
1
vote
1 answer

Multiple jandex maven plugin (JBoss vs SmallRye)

I use Weld on a Java SE application, and I was wondering if generate the Jandex index at build with a plugin will improve the startup. For now, I didn't notice a performance improvement. But i found 2 plugins for generating the…
iriiko
  • 43
  • 4
1
vote
1 answer

Why does Cassandra Quarkus extension not use smallrye-mutiny-vertx-cassandra-client to interact with Cassandra?

In the below guide we can see its all annotation driven and entity , all the dao classes are generated during compile time. https://quarkus.io/guides/cassandra#reactive If you want to execute queries natively like u have a sql and prepare stmt and…
Jaiprasad
  • 149
  • 11
1
vote
1 answer

how to block threads until smallrye mutiny reach specific condition?

I'd like to parallel into 3 threads. Then I read the output, if there's returning output more than 99, stop the two other threads. Then main thread will give an output as "99+". Otherwise if not reach 99, store it as is (integer value) then wait…
RxGianYagami
  • 76
  • 1
  • 10
1
vote
1 answer

Custom key resolver in Quarkus w/Smallry JWT

I am having an issue with Quarkus and Smallrye-JWT. I have a scheme for dynamically looking up the (private) key for the consuming service to decrypt the token and the (public) key from the issuing service to verify the token. However, no matter…
Chris Ruffalo
  • 1,903
  • 12
  • 17
1
vote
1 answer

Apply complex business logic to Multi object and return a Uni object in Rest API

Inside a rest function I'm making a reactive Postgres Db call which is returning a Multi. My intention is to run a complex business logic on Multi and return a new Uni. @GET public Uni get() { Multi objects =…
1
vote
1 answer

Quarkus: Unable to create custom annotation for microprofile APIResponses - Error - '@APIResponses' not applicable to annotation type

Quarkus with microprofile openapi and swagger. We are trying to create custom annotation for @APIResponses. Is this possible in quarkus? `org.eclipse.microprofile.openapi.annotations.APIResponses;` `package…
vaibhavSO
  • 11
  • 1
1
vote
0 answers

Using a custom ConfigMap with Quarkus with packing-type 'fast-jar' does not work

The problem After changing the quarkus.package.type to fast-jar, the application instances on our Kubernetes cluster could no longer read a mounted ConfigMap. 2022-02-17 14:39:45,155 WARN [com.example.MyStartupService] (main) Config param is not…
Japu_D_Cret
  • 632
  • 5
  • 18
1
vote
1 answer

Creating `Uni` from a coroutine / suspending function

We are using quarkus to process messages this run on a regular function in that we have to call a suspend function basically fun process (msg:Message):Message{ val resFrom:Data = runBlocking{fetchDataFromDB(msg.key)} val processedMsg =…
jojo_Berlin
  • 673
  • 1
  • 4
  • 19
1 2
3
10 11