There're tons of explanation for the difference between Java EE and Web profile for all imaginable pairs of implementations ("What's the difference between Tomcat and GlassFish", "What's the difference between GlassFish and JBoss", etc.) which is pretty clear to me. There're good questions for glassfish-web.xml vs sun-web.xml vs web.xml as well as The difference between web.xml, beans.xml, applicationContext.xml, etc however they all link to the GlassFish 3.x documentation[1].
I'd like to have some definite statements on
- precedence between
glassfish-application.xml
andglassfish-web.xml
, meaning does one override the other (it could be logical that web overrides application because the classloading order is inverted) or are options picked from both? - possible locations where I can expect the files to be picked up. I assume
/
in the ear for the application and/WEB-INF/
in the war (inside the ear) for the application descriptor - Is it possible to specify any values in both files which can be specified in other files, like
web.xml
orbeans.xml
and if yes, what's the precedence, then? - What's the situation in a war packaged (as opposed to ear packaged) Java EE application?
I assume that there's no difference between Payara and GlassFish because the former is designed to be a drop-in replacement - the fact that documentation is practically not found by google is the same for Payara as for GlassFish 4.x.
[1] which is the major issue with GlassFish - most of the time there's only 3.x documentation available through links in manuals, blog and SO questions and you have to try all the things with the presumption that it might not work because something changed from 3.x to 4.x which results in 2^n complexity for n issues.