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

Jakarta EE 10 @Startup on K8S

Stack Java Jakarta EE 10 JBoss/Widlfly 27 Kubernetes K8S JAX-RS (RestEasy) I want to initialize some caches on startup of my app. During that time i want my readiness probe to respond not ready. With the management inteface turned on, this works BUT…
0
votes
2 answers

how can I inject gradle ext properties

I am trying to pass project version and compilation time to my Quarkus project via build.gradle and GradleExtraProperties. I have in my gradle.build file: version '0.0.0-SNAPSHOT' ext { buildTime = new…
Bernd Prager
  • 101
  • 10
0
votes
1 answer

Dynamic API client with dynamic custom header (Microprofile, Quarkus)

I want to create a custom Client API (on a non-Java RS environment). The API needs to have a custom base URL and a custom Header. I achieve the custom base URL with the following and it works like a charm RestClientBuilder.newBuilder() …
0
votes
2 answers

Logging Microprofile fault tollerance events

I am working on a Quarkus app that uses the smallrye microprofile fault tolerance implementation. We have configured fault tolerance on the client definitions via the annotations API (@Retry, @Bulkhead, etc) and it seems to work but we don't get any…
0
votes
1 answer

How to validate path parameter in microprofile

Here key is pathParam. And even if I send the value of key greater than 9. It sends me valid response, instead of throwing validation error. Curl request - curl --location --request GET 'localhost:8080/v1/batch-tokens/11/action/count' Code…
0
votes
1 answer

Why does jwt verification fail? Quarkus with smallrye jwt, HS256

I have a quarkus app which does not generate jwt tokens itself but possesses a secret key of HS256-signed tokens (qwertyuiopasdfghjklzxcvbnm123456). I need to verify tokens of the incoming network requests, but for every request I get the…
E. Dn
  • 940
  • 1
  • 9
  • 21
0
votes
1 answer

Quarkus Logging Filter on MicroProfile issue (@Liveness @Readiness request with headers)

I have an issue where I can not log any request/response on q/health/ready or q/health/live endpoints. I implemented already LoggingFilter to intercept all the request and responses, but doesn't work for MicroProfile health…
0
votes
1 answer

How to create authorization roles from OIDC token in WebSphere Liberty server application using social login feature?

I am trying to implement role based authorization in an application running on WebSphere / Open Liberty server. Authentication is implemented using OIDC token & socual-login feature & it is workig fine. I am struggling to create roles from JWT token…
0
votes
0 answers

I need to send an empty Queryparam to my rest client

im using java/maven with microprofile to develop an api that will return information of a service that have @Queryparams, but the problem is that the provider of this service need that i sent an empty @Queryparam, like this emptyquery: …
0
votes
1 answer

Quarkus rest-client multipart file upload

Following is the curl for a service Service curl curl --location --request POST 'https://someapi.com/api/v2/tickets' \ --header 'Authorization: Basic sdsdfsdfsdfsdf=' \ --header 'Cookie: _x_w=5_2' \ --form…
0
votes
1 answer

Quarkus converter for microprofile configMapping not giving full object

I have the following configuration: my: filter: number-range: - range: from: +994700110000 to: +994700110002 The ConfigMapping is: @ConfigMapping(prefix = "my.filter") public interface…
mangusbrother
  • 3,988
  • 11
  • 51
  • 103
0
votes
1 answer

Run task asynchronously: ManagedExcecutorService vs Microprofile fault tolerance @Asynchronous

I want to run an asynchronous task in a JavaEE openliberty environment. Ideally the task has to run at startup, but I don't want that it blocks the startup of the WAR module itself. Also, I don't want that on failure it prevents the whole…
finrod
  • 521
  • 8
  • 21
0
votes
0 answers

QUARKUS: Set Environment variable to get value from a linuxcommand

In Quarkus, You can define environment variables that will represent as configuration to your Quarkus app. For example: DATABASE_PASSWORD=test123 Outside the quarkus app, there is a file that contains a password. The content of this file (being the…
rm12345
  • 1,089
  • 3
  • 18
  • 32
0
votes
0 answers

Microprofile running in weblogic like spring boot

Is it possible to run eclipse Microprofile running in WebLogic like spring boot?
bobs_007
  • 178
  • 1
  • 10
0
votes
0 answers

Quarkus @InjectMock is not working for Kafka consumer test

Quarkus @InjectMock is not working for Kafka consumer test. The mocked service object is being removed during the test and actual service is being called. How to resolve this? //Kafka consumer test @QuarkusTest public class ConsumerTest { …
vaibhavSO
  • 11
  • 1