Questions tagged [jakarta-ee]

Jakarta EE (formerly known as Java Enterprise Edition, Java EE, and J2EE) is a specification defining a collection of Java-based server and client technologies and how they interoperate. This is the master tag. For more specific API questions, please use [jsf], [servlets], [jpa], [cdi], [ejb], etc.

Java Enterprise Edition (Java EE) is a specification defining a collection of Java-based technologies and how they interoperate. Java EE specifies server and client architectures and uses profiles to define technology sets targeted at specific classes of applications. Numerous implementations are available in the form of both commercial products and open source projects. It is also possible to assemble full or partial implementations using constituent components.

From the Java EE 6 specification:

All Java EE profiles share a set of common features, such as naming and resource injection, packaging rules, security requirements, etc. This guarantees a degree of uniformity across all products, and indirectly applications, that fall under the "Java EE platform" umbrella. This also ensures that developers who are familiar with a certain profile, or with the full platform, can move easily to other profiles, avoiding excessive compartmentalization of skills and experience.

Java EE is currently migrating to the Eclipse Foundation under the top-level project EE4J, with the intent of introducing a more open community process with a faster release cycle. Under this process, Java EE has been rebranded as Jakarta EE.


References

Specifications


Official documentation


Official tutorials


Java EE learning resources


Java EE version history


Java EE on Social Media

29439 questions
60
votes
7 answers

WELD-001408: Unsatisfied dependencies for type Customer with qualifiers @Default

I'm a Java EE-newbie. I want to test JSF and therefore made a simple program but can not deploy it. I get the following error message: cannot Deploy onlineshop-war deploy is failing=Error occurred during deployment: Exception while loading the app :…
mike128
  • 609
  • 1
  • 5
  • 8
60
votes
4 answers

What are Interceptors in Java EE?

I'm trying to clear my concept about Interceptors in Java EE. I have read Java EE specification but I'm little confused about it. Please provide me some useful link or tutorial which could clear my concept. How, When, Why do we use interceptors?
Umair
  • 860
  • 2
  • 13
  • 30
60
votes
3 answers

Is package by feature approach good?

Recently I came across this javalobby post http://java.dzone.com/articles/how-changing-java-package on packaging java code by feature. I like the idea, but i have few questions on this approach. I asked my question but didn't get a satisfactory…
K. Siva Prasad Reddy
  • 11,786
  • 12
  • 68
  • 95
60
votes
4 answers

Understanding JSF as a MVC framework

I am reading on JSF and I feel rather confused why JSF is a MVC framework (or atleast which parts belongs to which "letter"). I looked at this question: What components are MVC in JSF MVC framework? I read there if you don't look at it in an…
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
59
votes
2 answers

Getting the java.lang.reflect.Method from a ProceedingJoinPoint?

The question is short and simple: Is there a way to get the Method object from an apsectj ProceedingJoinPoint? Currently I am doing Class[] parameterTypes = new Class[joinPoint.getArgs().length]; Object[] args = joinPoint.getArgs(); for(int i=0;…
Erik
  • 11,944
  • 18
  • 87
  • 126
59
votes
6 answers

Using the Jersey client to do a POST operation

In a Java method, I'd like to use a Jersey client object to do a POST operation on a RESTful web service (also written using Jersey) but am not sure how to use the client to send the values that will be used as FormParam's on the server. I'm able…
Jon Onstott
  • 13,499
  • 16
  • 80
  • 133
59
votes
2 answers

Please explain the @Produces annotation in CDI

I have read about the @Produces annotation in CDI, but I don't understand its usage. public class Resources { // Expose an entity manager using the resource producer pattern @SuppressWarnings("unused") @PersistenceContext @Produces private…
user798719
  • 9,619
  • 25
  • 84
  • 123
58
votes
2 answers

What is the difference between Eclipse 3.7 and Eclipse 4.1?

I see there are two main distributions of Eclipse going on - One is on 3.6, 3.7, 3.8 path and the other is 4.0, 4.1 path(http://www.eclipse.org/e4/). I don't have clarity on what is the difference between these two distributions?
Manish
  • 3,913
  • 2
  • 29
  • 45
58
votes
2 answers

What's the difference between the IN and MEMBER OF JPQL operators?

What's the difference between the IN and MEMBER OF JPQL operators?
Julio Faerman
  • 13,228
  • 9
  • 57
  • 75
58
votes
5 answers

Does Tomcat require JDK or JRE?

I've read many articles and posts related to Tomcat and the Java runtime. I am confused and need help. Can anybody clear my doubt regarding whether Tomcat requires JDK or JRE?
JDGuide
  • 6,239
  • 12
  • 46
  • 64
57
votes
17 answers

Hot deploy on JBoss - how do I make JBoss "see" the change?

I am developing a Java EE application that I deploy over and over again on a local JBoss installation during development. I want to speed up the build by hot deploying my application straight into [JBOSS]/server/default/deploy/myApp It seems to work…
Jacob Hansson
  • 149
  • 3
  • 7
  • 19
57
votes
6 answers

What is the best place to store a configuration file in a Java web application (WAR)?

I create a web application (WAR) and deploy it on Tomcat. In the webapp there is a page with a form where an administrator can enter some configuration data. I don't want to store this data in an DBMS, but just in an XML file on the file system.…
boes
  • 2,835
  • 2
  • 23
  • 28
57
votes
1 answer

How are Threads allocated to handle Servlet request?

Can someone please explain what is thread per request and thread per connection? Which model do servlets work on? How threads are allocated to handle HTTP requests? Is it thread/request or connection? And let's say if I want to perform a time…
hellojava
  • 4,904
  • 9
  • 30
  • 38
57
votes
1 answer

Difference between a "jta-datasource" and a " resource-local " datasource?

The terms "jta-datasource" and "resource-local datasource" are a little vague to me. I'm putting down what I am understanding ( or assuming ) and I'd like you to say where I'm right / wrong. The same database can be referred to as a jta-datasource…
stratwine
  • 3,663
  • 2
  • 26
  • 32
57
votes
3 answers

PersistenceUnit vs PersistenceContext

In few project I have been successfully using @PersistenceUnit(unitName = "MiddlewareJPA") EntityManagerFactory emf; ... EntityManager entityManager = emf.createEntityManager(); to obtain EntityManager for Database connection, but some days ago I…
user2377971
  • 1,442
  • 4
  • 21
  • 30