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

Slack-Api File Upload - Error No_File_Data

I created a call to slack's api, but I'm getting no_file_data error, I've tested my file and it is being generated, I've sent it with filename in multiform, with filetype, but the error persists CLASSE MICROPOFILE…
0
votes
1 answer

Stream response from micro-profile REST invocation directly to zip file

We potentially have large XML files that we stream from a REST service to a REST client. However, I don't need / want to interpret this files. Instead I want to directly write them to a zip file. How can I avoid keeping the whole content in memory…
Sjaak
  • 3,602
  • 17
  • 29
0
votes
1 answer

How to mark integer fields as required with Quarkus' Smallrye Openapi plugin in Kotlin?

I have a simple data class being returned by one of my routes. Data class: data class Fruit(val id: Long, val name: String) Route: @Path("/fruit") class FruitRoutes { @GET fun getAllFruit(): Multi { return Fruit.findAll() …
0
votes
0 answers

Configuring Jackson ObjectMapper to handle unknown fields in Microprofile Rest Clients Proxies

Cannot configure fasterxml jackson objectmapper to ignore unknown properties with Microprofile rest client proxy I have started looking into microprofile rest client proxies as we often need REST clients to work with external API's. I have managed…
0
votes
0 answers

With Helidon Metrics how do I mimic the OEM metrics?

With the metrics available in Helidon, how do I make graphs in Grafana to mimic what we used to have in OEM? For example: We seem to have Microprofile metrics, such as "base_gc_time_seconds" but I guess we need to use rate or something? Thanks!
Sarkie
  • 272
  • 3
  • 18
0
votes
0 answers

is it possible to filterout Micorprofile @Counted metric based on PathParam?

Eclipse MicroProfile defines a set of metrics (such as @Counted, @Timed, @Metered) which are useful for instrumentation and observability of a microservices. My question is that if I have an endpoint like @Counted(name = "greetingCount"…
pref
  • 1,651
  • 14
  • 24
0
votes
1 answer

microprofile-openapi-api 2.0 switches off hibernate-jpamodelgen

I have a java microservice-project with theese two dependencies defindes in my gradle.build file: implementation(group: 'org.eclipse.microprofile.openapi', name: 'microprofile-openapi-api', version:…
0
votes
2 answers

Quarkus SmallRye: JWT JSON Web Key Set refresh

I use a local JSON file (no HTTP(S) URL) which contains the keys as described in the Quarkus guide: I can use on of the following application properties: smallrye.jwt.verify.key.location mp.jwt.verify.publickey.location The problem is that the…
Timz
  • 412
  • 2
  • 13
0
votes
1 answer

How to programatically reset all metrics in a Quarkus app using Microprofile?

I'm exposing some custom metrics from my Quarkus application using microprofile MetricRegistry class. Those metrics are consumed and exposed to Prometheus through the /metrics endpoint. For testing purposes I'd like to reset/clear all metrics during…
João Pedro Schmitt
  • 1,046
  • 1
  • 11
  • 25
0
votes
1 answer

Optional aka informative health checks in MicroProfile Health

From what I understand the MicroProfile Health specification does not support "optional" or "informative" health checks, correct? Use case Application subscribes to Kafka topics and provides services beyond that. It is perfectly fine from the…
Marcel Stör
  • 22,695
  • 19
  • 92
  • 198
0
votes
1 answer

Using custom config source with quarkus seems to be not working

I have a maven multi module project using quarkus. The architecturecan be simplified like this: **module1 **-> configuration file such as…
okyn29
  • 11
  • 4
0
votes
0 answers

Microprofile metrics on openliberty, how to get metrics for dependency which you control

Microprofile allows you to expose metrics for your application, but common logic is placed in a separate repository which is added as a dependency to the POM. How can I get the metrics for this common library which is included in all of our…
Vinagy
  • 133
  • 2
  • 11
0
votes
1 answer

How to use MicroProfile ConfigProperty injection from a microprofile-config.properties file in Open Liberty test using ShrinkWrap + Arquillian?

Problem I added a microprofile-config.properties file to the Liberty "Testing microservices with the Arquillian managed container" guide sample, but my microprofile-config.properties isn't picked up by my test. Symptom > Exception :…
0
votes
1 answer

Is it possible to change or configure the "/openapi" url on which OpenLiberty generates the OpenAPI documentation

Is it possible to change the url / context-root of the openapi documentation which openliberty generates (microprofile-5.0 and mpConfig-3.0) By default this is generated on "/openapi" but I was wondering if this can be configured. I tried to see if…
dvde
  • 1
  • 1
0
votes
1 answer

Quarkus 2.11.x no longer includes org.eclipse.microprofile.metrics:microprofile-metrics-api:3.0.1

I am currently migrating from 2.10.x (bom) and when I tried 2.11.3 (bom) I found that org.eclipse.microprofile.metrics.annotation.Gauge no longer exists. This comes from the following…
trisport88
  • 33
  • 2