What is Java EE Endorsed API?

13.3k views Asked by At

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.

2

There are 2 answers

1
unigeek On

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.

0
MrAn3 On

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