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

How to send message by message to Kafka

I'm new to reactive programming and I try to implement a very basic scenario. I want to send a message to kafka each time a file is dropped to a specific folder. I think that I don't understand well the basics things... so please could you help…
0
votes
0 answers

Microprofile @Fallback not working in native image mode

Having the following code running on Quarkus: @Singleton @RegisterForReflection public class StoreService { private static final Logger LOGGER = Logger.getLogger(StoreService.class); @Inject @RestClient StoresApiClient client; …
0
votes
1 answer

Microprofile health on two applications

I have two applications on which I would like to have the health endpoints from microprofile. When I try and run these in parallel the second will fail. Is there a way to change the port. I have tried adding the flag Dmicroprofile.http.port= when…
Andrew
  • 85
  • 2
  • 8
0
votes
1 answer

Eclipse MicroProfile Metrics with SOAP-based web services

Isn’t it possible to use Eclipse MicroProfile Metrics with SOAP-based web services on Payara Server 5.193.1? @Counted and @Timed don’t seem to work with @WebService and @WebMethod? Although, @Metric works. Is this by design or is it an issue? Here…
Marc Beckers
  • 143
  • 1
  • 9
0
votes
1 answer

Microprofile generate Open-Api File on build

prior to using Eclipse Microprofile we've generated our open-api files via the io.openapitools.swagger:swagger-maven-plugin. This plugin relies on the io.swagger.core.v3:swagger-annotations maven dependency. Eclipse Microprofile though comes with a…
Jonas Michel
  • 68
  • 1
  • 8
0
votes
1 answer

Running start.microprofile.io demo on Netbeans 11.1

I am new in the Microservices world. I have read a lot o materials but still not able to run my first app. So I have generated a demo from https://start.microprofile.io with the following configuration: MicroProfile Version: MP2.1 MicroProfile…
Hicham
  • 170
  • 2
  • 16
0
votes
1 answer

Quarkus MicroProfile JWT auth via JWKS

I'm attempting to use a JWKS endpoint to supply a public key for verifying a JWT signature. In my application.properties, I've set the following: mp.jwt.verify.publickey.location = http://localhost:1080/jwks It appears that this is indeed being…
Jim Wharton
  • 1,375
  • 3
  • 18
  • 41
0
votes
1 answer

Payara Micro returning AuthenticationStatus.SEND_FAILURE when passing a JWT bearer to a protected JAX-RS resource

I am relatively new to Java programming so please bear with me. I am developing a microservice to be deployed on Payara Micro. For security, I am using JWTs. Because Payara Micro is an implementation of MicroProfile, I am trying to leverage the…
Cam
  • 11
  • 3
0
votes
1 answer

Custom config file with eclipse microprofile-config

I want to select .properties file at runtime. Is it possible with microprofile-config? So, instead of using META-INF/microprofile-config.properties I would like to use an external file: java -jar mymicroprofileapp.jar -s my.properties I know, it is…
g6380647
  • 267
  • 1
  • 2
  • 10
0
votes
1 answer

JAX-RS 2.1 parameter type Object.class

Having this example JAX-RS web-service, the second parameter of the getByAttribute is of the type Object.class. @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @Path("/POJOService") public interface POJOService extends…
flavio.donze
  • 7,432
  • 9
  • 58
  • 91
0
votes
0 answers

Quarkus Microprofile JWT - Alternate quarkus.smallrye-jwt.auth-mechanism

I'm trying out the Quarkus JWT quickstart. But when I use the token that I normally use in my Spring application. I get the following error. rejected due to invalid claims. Additional details: [[17] Unexpected exception thrown from validator…
Antho Christen
  • 1,369
  • 1
  • 10
  • 21
0
votes
1 answer

Portability issue with MicroProfile Config implementation in Thorntail

This question is about the proper way to read configuration in a REST service in a portable way, e.g. should run on Thorntail 2.4.0 and Wildfly 15. This was the original implementation suggested by Thorntail @Inject …
0
votes
2 answers

How to inject KafkaTemplate in Quarkus

I'm trying to inject a KafkaTemplate to send a single message. I'm developing a small function that lies outside the reactive approach. I can only find examples that use @Ingoing and @Outgoing from Smallrye but I don't need a KafkaStream. I tried…
firegloves
  • 5,581
  • 2
  • 29
  • 50
0
votes
1 answer

kumuluzee: no main manifest

This is my build.gradle: plugins { id: 'java' } dependencies { implementation 'com.kumuluz.ee:kumuluzee-core:3.1.0' implementation 'com.kumuluz.ee:kumuluzee-servlet-jetty:3.1.0' implementation…
Jordi
  • 20,868
  • 39
  • 149
  • 333
0
votes
1 answer

JPA error QuerySyntaxException: Player is not mapped [SELECT p FROM Player p]

I'm trying using JPA to do a simple get query inside eclipse microprofiles, this way: Class Player: @Entity @Table(name = "player") public class Player {... Main Class: @ApplicationScoped @Path("/hello2") public class HelloWorld extends Application…
Usr
  • 2,628
  • 10
  • 51
  • 91
1 2 3
19
20