Questions tagged [microprofile]

The Eclipse MicroProfile project defines a programming model for developing microservice applications in an Enterprise Java environment.

The Eclipse MicroProfile project is a CDI-first approach to building microservice applications and supported by both community and Java application server vendors. There are a number of active projects within MicroProfile, which can be viewed at the official website.

296 questions
0
votes
1 answer

Get response header from MicroProfile/Quarkus REST client

I'm calling an endpoint where the information I need is returned in the response header (https://keycloak.discourse.group/t/rest-api-create-user-no-user-identifier-in-response/1964/4). How do I retrieve this information if I use Quarkus REST client…
wiradikusuma
  • 1,930
  • 4
  • 28
  • 44
0
votes
2 answers

Resteasy microprofile client hides the response error

In my Quarkus microservice, I am using a microprofile rest client to fetch data from other external services: import javax.enterprise.context.ApplicationScoped; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import…
GeauxEric
  • 2,814
  • 6
  • 26
  • 33
0
votes
1 answer

OpenApi (Swagger) Enum display name

We use microprofile openapi annotations to generate Swagger documentation for our rest interfaces. Enums often have a property that stores the "display name", which is shown instead of the Enum. For…
Clemens
  • 99
  • 1
  • 10
0
votes
1 answer

Validate REST parameter in Quarkus Microprofile

The following code is part of a controller in a Quarkus Microprofile API application. @GET @Path("/limit/{limit}/offset/{offset}") @Produces(MediaType.APPLICATION_JSON) public Response paginatedAccounts( @Parameter( …
Guildenstern70
  • 1,715
  • 18
  • 18
0
votes
1 answer

Reading configuration file with a map of properties in Quarkus

My application.yaml has a map of values stored in a yaml file. app: myMap: key1: value1 key2: value2 key3: value3 Configuration class: @Data @ApplicationScoped public class AppConfiguration { @ConfigProperty(name = "app.myMap") …
user0000001
  • 2,092
  • 2
  • 20
  • 48
0
votes
1 answer

Microprofile JWT responding with 401 all the time

I'm having an issue trying to get Microprofile JWT working for my REST resources. I'm able to build a JWT so when decoded on jwt.ie it is { "kid": "Oh1YDQopers_qYMU4zQCmAf0UsFVD5D0NmkFE79s2q0", "typ": "JWT", "alg": "RS256" } { "token_type":…
user1421324
  • 139
  • 3
  • 9
0
votes
1 answer

Message getting expired in ActiveMQ Artemis

I have created an ActiveMQ Artemis producer in Quarkus application using Eclipse microprofile emitter. But the messages are getting expired instantly, and being moved into ExpiryQueue. I am not sure about this behavior. Please suggest how could I…
0
votes
1 answer

How to propagate JTA state when using reactive-messaging?

I would like to propagate JTA state (= the transaction) between a transactional REST endpoint that emits a message to a reactive-messaging connector. @Inject @Channel("test") Emitter emitter; @POST @Transactional public Response test() { …
0
votes
1 answer

reactive microprofile REST client blocks on Quarkus

On Quarkus I try to build a reactive microprofile REST client with a dynamic baseUrl, but so far in all implementation variants the REST call blocks after subscription. Interestingly the non-reactive implementation works like a charm. Let's see some…
Pat
  • 31
  • 3
0
votes
1 answer

Java Quarkus/MicroProfile Restclient inject sslContext

How I can inject a custom sslContext by use the @RegisterRestClient inside a interface ?
ThomasL
  • 1
  • 1
0
votes
2 answers

Microprofile java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream incompatible

I'm using microprofile 3.2 to call out to a rest webservice that returns a java bean in a Response entity. When I try to extract the bean from the response though I get a java.lang.ClassCastException:…
user1421324
  • 139
  • 3
  • 9
0
votes
2 answers

Smallrye open api interceptor

I am developing a rest application. Some endpoints require a custom header parameter, not related to authorisation. I created a custom annotation using jax-rs NameBinding. Here is an usage example: @GET @RequiresBankHeader public int get( …
AmsterdamLuis
  • 341
  • 3
  • 21
0
votes
1 answer

Using Docker Secret for Quarkus Data Source Password

I currently work in a project where the client requires a relatively high level of security, and production database passwords are not shared with us developers. I'm using Quarkus version 1.9.2.Final deployed on Docker Swarm. I was wondering if…
Ahmed Anwar
  • 688
  • 5
  • 25
0
votes
1 answer

Implementing microprofile health checks with EJB application

I have a EJB application (Ear) deployed on open liberty in kubernetes environment. I am trying to implement health checks (liveliness and readiness) using the microprofile health feature supported by liberty…
cooldev
  • 497
  • 1
  • 3
  • 17
0
votes
2 answers

Rest Client - Can i set connectionPoolSize?

Microprofile allows to define connectionPoolSize from RestClient like this: io.smallrye.restclient.tests.proxy.HelloClient/property/resteasy.connectionPoolSize = 4 When I set this property in my project, quarkus ignores it. How can i define it?