Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Java EE Endorsed API?

See here.

There are three different Java EE related API:s available in the Maven repository.

  1. Specification APIs (Maven artifact: javaee-api)
  2. Web Specification APIs (javaee-web)
  3. Endorsed APIs (javaee-endorsed-api)

I know the specification API (the full blown suite of Java EE API:s) and the web API (a subset of the former, implemented by some application servers).

But what is the "endorsed API" and do I need to care?

Note: I did find this link but it tells me nothing.

like image 376
Martin Andersson Avatar asked Feb 03 '14 13:02

Martin Andersson


People also ask

What is Java EE API?

The Java Platform, Enterprise Edition (Java EE) is a collection of Java APIs owned by Oracle that software developers can use to write server-side applications. It was formerly known as Java 2 Platform, Enterprise Edition, or J2EE.

Which of the following APIs is part of the Java EE 7 specification?

Java Transaction API However, if your application performs two separate database access operations that depend on each other, you will want to use the JTA API to demarcate where the entire transaction, including both operations, begins, rolls back, and commits. The Java EE 7 platform requires Java Transaction API 1.2.


2 Answers

I was having problems running a project because of this dependency in NetBeans. Installing "EJB and EAR" plugin solved it for me.

like image 106
MrAn3 Avatar answered Sep 20 '22 00:09

MrAn3


Looks to be GlassFish related. Download the jar and execute:

jar -tf javaee-endorsed-api-7.0.jar

Actually, if you look at the table in the "Standalone Technologies" section of that link you referenced, there seems to be a very good correspondence between the classes included in the javaee-endorsed-api-7.0.jar and the items in the table. I would say it seems that the jar is bundling up these for GlassFish so that the jar can be dropped into

<java-home>/lib/endorsed

And then become available to applications deployed on the GlassFish server.

like image 30
unigeek Avatar answered Sep 20 '22 00:09

unigeek