Questions tagged [java-ee-8]

Use this tag for questions relating specifically to Java Enterprise Edition 8.

Java Enterprise Edition 8 (JEE8) is a specification defining a collection of Java-based technologies and how they interoperate. JEE8 incorporates features of previous versions and adds:

  • Java Servlet 4.0 API with HTTP/2 support
  • Enhanced JSON support including a new JSON binding API
  • A new REST Reactive Client API
  • Asynchronous CDI Events
  • A new portable Security API
  • Server-Sent Events support (Client & Server-side)
  • Support for Java SE 8 new capabilities (e.g. Date & Time API, Streams API, annotations enhancements)

See Overview below for a list of updated and new JSRs.

Numerous implementations are available in the form of both commercial products and open source projects. Glassfish 5 is the reference implementation for JEE8.

Information

This tag is specific for the Java EE 8 version. See the tag for general Java EE questions.

Useful links

467 questions
0
votes
1 answer

Queue creation for MDBs in Wildfly

I have such MDB in my application @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), @ActivationConfigProperty(propertyName = "destination",…
Alexey Usharovski
  • 1,404
  • 13
  • 31
0
votes
0 answers

How ConcurrentHashMap will manage to put, remove and get Map Entry (Key, Value) for same segment on same time for multiple threads in Java?

Suppose, there are three threads, who want to access same object of ConcurrentHashMap of Java (Java 7). These three threads have operation as put, remove and get respectively. Could you please help me to understand, how ConcurrentHashMap will…
Manjur
  • 63
  • 6
0
votes
0 answers

Jakarta EE - Interceptors run only when invoked on class but not on methods

My final intent is to have an interceptor that is invoked on certain methods and apply bean validation on the inputs. My business services provide CRUD capabilities and, in order to do so, I have a simple hierarchy where I group CRUD methods in…
Abde
  • 31
  • 1
  • 5
0
votes
0 answers

JSF 2.3 onmessage listener function not firing

Since PrimeFaces have deprecated Push I'm trying to get JSF 2.3 working om GlassFish 5. I'm having trouble firing my listener though. I have the following code: @Inject @Push(channel = "notifyjsf") private PushContext…
zobbo
  • 117
  • 2
  • 13
0
votes
1 answer

Payara DataSource not being injected

I'm using Payara 5.184 and Java 1.8.241 on Linux (Ubuntu 19.10). I'm also using Liquibase as my database schema change management. A field named myDataSource is being injected as follows: @Resource(mappedName = "java:global/ds") private DataSource…
pluralism
  • 1,487
  • 2
  • 16
  • 22
0
votes
0 answers

Starting a new web application project with IntelliJ IDEA

I am using the latest version of IntelliJ IDEA. My first project went fine. I was able to create a simple hello world with some parameters. Now, I have decided to create a new project to test JAX-RS and some JSPs. Everything runs fine on my TomEE…
jamana
  • 11
  • 1
  • 4
0
votes
1 answer

I want to use CDI with Java SE 12, but start up failes (Main Class, JBoss or Payara, all the same error)

I got completely stuck. I want to use CDI2 with Servlets to write a simple web app. However, the beans not get loaded. I get the following error in JBoss or Payara or Weld (if running as Main Application): WELD-001524: Unable to load proxy class for…
0
votes
2 answers

Consuming Json in JAX-RS: Prohibiting null values

I'm writing a simple REST service which expects a POST containing a Json. The service should refuse any Json not containing exactly the keys it expects. I'm using JAX-RS on a JBoss EAP 7.1 and have been unable to do this. Code example: import…
MrThaler
  • 124
  • 8
0
votes
1 answer

Java EE Rest Webservice PathParam is always 0

I created a Rest Webservice. When I want to update an entity with a specific id the PathParam is always 0. @PUT @Path("account/{accountId}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Account…
softwareUser
  • 398
  • 2
  • 6
  • 21
0
votes
2 answers

How to inject bean inside for loop with parameters

Can I inject Beans with parameters inside the for loop? I don't want to initialize manually TheService how in the following example: @Singelton public class Scheduler { @Inject private UserQueryService userQueryService; @Schedule(hour =…
0
votes
0 answers

SqlResultSetMapping Unknown mapping error

I am working on a Spring boot rest API and i asked a question earlier about mapping pojo class to result set Could not locate appropriate constructor on class..... the answers I got worked effectively but when I am using only one entity class and…
0
votes
0 answers

How EJB container differentiates one client from another in case of @Stateful

I am trying to understand what could be done with @Stateful beans, given @SessionScoped CDI beans. I created this JAX-RS resource: @Path("ping") public class PingResource { @Inject private StatelessCounter statelessCounter; @Inject …
Prakhar Mishra
  • 1,586
  • 4
  • 28
  • 52
0
votes
2 answers

Modify REST parameters with annotation - Java EE8

My purpose is to use a custom annotation within the REST method that automatically transform the parameter in some desired form. Something like: Response get(@StringNormalizer(UPPERCASE) String myparam) I know there is the HttpServletRequestWrapper…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
0
votes
3 answers

Unable to start Apache Tomcat v9.0 server for Spring Boot Rest Api

I am new to Spring Boot. I am building a rest API with spring boot 2.2, hibernate 5 and MySQL on a java 1.8 compiler. When I run my spring boot rest API application on my apache tomcat v8.0 server, the server starts and the application runs and…
H.beuhier
  • 41
  • 1
  • 10
0
votes
2 answers

Logging user info and update operations from REST / EJB service

I need to log all update operations from my rest resources and store to a Database log table. The idea is to store info like: logged user operation description about updated / saved entity updated fields and reference key My application is Java…
Fabrizio Stellato
  • 1,727
  • 21
  • 52