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
2
votes
1 answer

How to configure OpenLiberty 18.0.0.2 to use Liberty embedded messaging?

I am trying to configure the OpenLiberty 18.0.0.2 to use embedded messaging for sending some simple JMS messages. My current server.xml looks like the following:
rieckpil
  • 10,470
  • 3
  • 32
  • 56
2
votes
1 answer

Implementing filter-based JWT authentication vs OAuth2 JWT authentication on Spring Boot 2

As I can understand, OAuth2 framework needs a custom JWT authentication server and I have to create a custom security filter with JWT utility class for the filter-based JWT implementation. However my question is, what is the best method to implement…
Unknown
  • 863
  • 2
  • 14
  • 29
2
votes
1 answer

How can I asynchronously handle SSE events?

Optimally, I would like to be able to do something like this Request request = new Request("http://someendpoint") request.onMessage(payload -> System.out.println(payload)) request.onError(error -> error.printStackTrace()) request.onClose(() ->…
Caleb Bassham
  • 1,874
  • 2
  • 16
  • 33
1
vote
1 answer

Java EE: Payara micro server not generating REST endpoints (404 error)

I am new to Java EE development. I downloaded Payara micro-server 6.2023.8 and generated a simple Java EE application through the maven archetype com.airhacks:javaee8-essentials-archetype:0.0.4…
Python_user
  • 1,378
  • 3
  • 12
  • 25
1
vote
0 answers

Which version of the JAX-RS API is supported by TomEE 8.0? JAX-RS 2.0 or JAX-RS 2.1?

According to the TomEE Download Page, TomEE 8.0 implements the APIs of Java EE 8 and MicroProfile 2.0. Part of these specifications is the API JAX-RS 2.1. Recently, however, I ran into ClassNotFoundExceptions when trying to use the the Jersey…
Gerhard
  • 285
  • 3
  • 12
1
vote
0 answers

JSR-352: Save chunk checkpoint after ItemReader reads items

Using JSR-352 batch job along with Java EE, I'm trying to process items on chunk from a source in partitions. On retriable exception I want to be able to return to a past checkpoint, so I could get items already read from the source. The nature of…
1
vote
1 answer

Corrupted Zip File , sent to the client side , java ee

I'm currently developping on a webserver for my company , and i'am facing a corrupted zip file problem. At the end of a servlet. Here's the function header called at the very end of the servlet. sendFile(directory, "s" + this.optimizerId + "-" +…
1
vote
1 answer

Which is the best JPA practice in a production environment?

I have seen instances where developers create tables in the database then they use jpa tools to generate entities from the tables. There are also cases where entities are first created then the tables will be created by the JPA provider. Which is…
1
vote
3 answers

Jakarta EE with Apache Shiro

I am using Wildfly webserver, and trying to implement Apache Shiro within Jakarta EE application, unfortunately I am getting this error: 16:49:36,189 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013:…
1
vote
2 answers

Why does my function to collect data from database is not working

I am currently working on my first Java EE project. I am trying to display data from a database I created, but nothing is showing. So, I wonder if I did something bad in my connection or something else. I am using mysql-connector-java-8.0.30 I…
Dayvin
  • 11
  • 1
1
vote
1 answer

How am I able to reference Entity Manager instance even if I don't have any implementation?

In my java EE application , I wrote a simple bean that I referenced container managed entity manager like below @Stateless public class MessageService { @PersistenceContext private EntityManager entityManager; But even if I have only java EE 8…
user7514788
1
vote
1 answer

Testing EJB with Arquillian I get "Please include at least 1 Deployable Container on your Classpath."

I'm trying to test the following bean with Arquillian, but get an error saying that cannot find a deployable container: import javax.ejb.Stateless; @Stateless public class MyBean { public int add1(int x) { return x + 1; } …
ps0604
  • 1,227
  • 23
  • 133
  • 330
1
vote
1 answer

Prevent Payara from issuing JSESSIONID for path /

We're running into an issue with multiple JSESSIONID being sent. Our web app is a JavaEE web app with Payara Server 5.2021.10. The login page gets a JSESSIONID for the / path before logging in. After logging in, we redirect to /my-app and the…
jhansen
  • 11
  • 2
1
vote
1 answer

Add a new Jakarta EE specification to existing project in IntelliJ IDEA

When creating new project in IntelliJ IDEA you can choose the specifications you need in your project: But I want to add new specification (like JSF) to currently existing project without adding it manually into pom.xml file (because of boilerplate…
Mehdi Rahimi
  • 1,453
  • 5
  • 20
  • 31
1
vote
0 answers

How can you merge the same type entities consecutively using JPA PresistanceContext

I am currently creating a small project to mimic simple bank transactions. Currently there are two types of transactions. Request transaction Transaction is can be accepted or rejected. Transaction can only be completed when recipient has made the…