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
1
vote
1 answer

JPA EntityManager.flush() is not called by java/jakarta EE container

JPA EntityManager.flush() is not called by glassfish 5.1 EE container. In Java SE environment: EntityTransaction t = em.getTransaction(); t.begin(); // persist entities em.persist(entity); t.commit(); commit() will flush entities in persistence…
eastwater
  • 4,624
  • 9
  • 49
  • 118
1
vote
0 answers

How to Handle too many Rest requests in Java EE?

I'm working with a JavaEE 8 application that has one rest Endpoint shown as below. I use Jboss EAP 7.2 as Application Server that has thread-pool count 1000 and bounded-queue-thread-pool count 900. This rest request has some validation businesses in…
solaris
  • 33
  • 2
1
vote
1 answer

Changing timer after startup in Java EE TimerService

In this code I use a TimerService on startup to initiate a task that will run every four seconds. What if I need to change the frequency after startup? @Startup @Singleton public class ProgrammaticScheduler { @Resource TimerService…
ps0604
  • 1,227
  • 23
  • 133
  • 330
1
vote
1 answer

How to implement a chat system in my web application with Vue and Java EE?

I have a Web Application based on Vue.js, REST(JSON) and Java EE with Payara Server. Now i want to add a chat. There should be different fixed chat rooms (global, groups) and there should also be the possibility for private user-to-user chats. I've…
config
  • 136
  • 1
  • 10
1
vote
1 answer

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", className =…
LHA
  • 9,398
  • 8
  • 46
  • 85
1
vote
1 answer

Login not forwarding correctly with CustomFormAuth and o:form

I'm trying to implement Jakarta Security on my web project, to do so I'm following the amazing "The Definitive Guide to JSF in Java EE 8" by Bauke Scholtz and Arjan Tijms but it seems that I'm hitting a wall. When I type in a restricted url in the…
Pilpin
  • 150
  • 9
1
vote
0 answers

Problem to configuration Java EE in netbeans

I am trying to configuration Java EE from netbeans 12 (I have tried whit the version 11.3 but had the same problem) , but it doesn't work, I have actived java web and EE and then when I go to the option available plugin it doesn't …
Christt
  • 11
  • 1
1
vote
2 answers

maven, ear package put dependencies either under ear and web module

I have an ear module, so composed: ear ejb web I'm using maven for managing the package; every module has its own pom.xml Now, let's say the pom.xml of the ear module is this:
Fabrizio Stellato
  • 1,727
  • 21
  • 52
1
vote
1 answer

batch application (JSR 352)

I'm beginner with development of batch and I want to create my first batch so I create a maven project on intellij my problem with the xml file is the tag not recognized by intellij and say 'element job must be declared' I think the problem is…
1
vote
1 answer

Payara 5, Customize Restful json bean properties

I'm trying to change the name of a bean's attribute in a RESTFUL response. I know Payara 5 uses Jsonb as default serialization library but seems that @JsonbProperty annotation is ignored. E.g. If the bean is: public class MyBean implements…
drh
  • 11
  • 1
1
vote
1 answer

java | combine some lists of different object types by timestamp

I am looking for a way to combine several lists with objects of different types. The target fields should be specified using annotations on the target object. My biggest problem is taking into account the timestamps, which represent the validity of…
Net_Hans
  • 115
  • 12
1
vote
1 answer

java.lang.NoClassDefFoundError: org/apache/http/message/BasicNameValuePair

I make servlet java project and I need to call bitrix's rest api (Actually, it doesn't mater). I made next method: public Credentials loadAuthToken(String client_id, String client_secret, String code) throws BitrixApiException { …
piller97
  • 85
  • 10
1
vote
0 answers

Error after deleting entity class in netbeans (JAVA EE 8, jpa, EclipseLink)

i'm working on a web application using Netbeans java ee 8 JSF JPA and Payara Server, I moved a java entity class from one package to another and now i'm getting the following exception : Exception Description: Entity name must be unique in a…
tarek
  • 11
  • 2
1
vote
2 answers

What are the differences between @PostConstruct and Autowired Constructor?

I'd like to know what are the differences between the two examples below. One is using @PostConstruct init method to ensure autowired bean is initialized, and the other one is using constructor with @Autowired to ensure any needed beans are…
Edmund Ham
  • 47
  • 1
  • 7
1
vote
1 answer

NullPointerException when testing Singleton in Java EE

I want to test the getCitation() method using jUnit: @Singleton public class QuotesLoaderBean { Properties quotes; Properties names; @PostConstruct public void init() { InputStream quotesInput =…
softwareUser
  • 398
  • 2
  • 6
  • 21