In Payara 5, Jakarta EE 8, I try to inject all the qualified beans and then select a specific one using a qualifier as shown right below: The abstract class which extends the interface along with an implementer: And the qualifier The result is unsatisfied dependencies error. The same code works on JavaEE 7 ap…
Tag: java-ee-8
How adding Authorize Button to swagger-ui in java EE application
I have a java EE application and I want to add swagger-ui to document my java REST API. my Swagger-ui it works but I want to add the Authorize Button to swagger-ui in my java EE application thnak you this is my pom.xml Application.java Answer I would strongly recommend OpenAPI Specification to comprehend API …
How to write async POST/GET in Java Microprofile correctly
I’m a C developer who needs to create a basic async REST server (synchronous version works fine) in Java using the Microprofile (Helidon MP) framework. Here is my strategy to do this: The client should do the POST call and provide JSON objects that the POST endpoint will receive. Then, the POST Endpoint…
javax.ws.rs.Path how to intercept just the project root without compromising all the other paths
I have this web.xml, don’t want a suffix for the url-pattern so I’m using a /* pattern: This is my RestVersion.java class that I want to manage the root requests: Where IRestVersion.java is the following: The problem is that any other path is intercepted by this RestVersion class, like this: http:…
SPRING MVC : How to pass the radio button value which is clicked to controller?
I am using Spring MVC controller. Is it possible to set an object in the path value in a radio button ? below my form inside my jsp And my controller Here is my AddressForm I want to retrieve the selected object address from my controller but I have an Error bindingResult.hasErrors() return true with the foll…
REST API Send multiples errors in a JSON Array at the same time with JAX-RS
I’m learning how to create an API with Java EE and JAX-RS. But I could not find any answer about my problem on internet. I have a route “signup” : Currently, to send all the error message I need, I’m using this: This code send me basically this type of Response: This is what I want, bu…
Using OS system variable for @DataSourceDefinition password failed in Wildfly 18
I want to externalize password for Java @DataSourceDefinition using OS system variable ${appuserpwd}. The below is my @DataSourceDefinition @DataSourceDefinition( name = “java:app/jdbc/mydb&…