What is the difference between glassfish-application.xml and glassfish-web.xml in GlassFish / Payara 4.x?

There is a subtlety of explaining the differences between Java EE and the web profile for all imaginary pairs of implementations ("What is the difference between Tomcat and GlassFish", "What is the difference between GlassFish and JBoss", etc.), which is pretty clear to me. There are 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 refer to the GlassFish 3.x documentation [1].

I would like to have some specific statements on

  • priority between glassfish-application.xmland glassfish-web.xml, that is, it overrides another (it may be logical that the web overrides the application because the loading order of the classes is inverted) or the options chosen from both?
  • possible locations where I can expect files to be raised. I assume /in the ear for the application and /WEB-INF/in war (inside the ear) for the application descriptor
  • Is it possible to specify any values ​​in both files that can be specified in other files, for example, web.xmlor beans.xml, and if so, what is the priority, then?
  • What is the situation in the war packaged (as opposed to ear packing) Java EE application?

, Payara GlassFish, - , Google - Payara, GlassFish 4.x.


[1], GlassFish - 3.x, , SO-, , - 3.x 4.x, 2 ^ n n .

+4
1

glassfish-application.xml glassfish-web.xml, ( , , ) , ?

glassfish-application.xml .ear, glassfish-web.xml .war. .war .ear glassfish-web.xml , glassfish-ejb.xml.

, , . / /WEB-INF/ ( )

, , glassfish-application.xml META-INF .ear MANIFEST.MF, glassfish-web.xml WEB-INF, beans.xml.

, , web.xml beans.xml, , , ?

, JavaEE, web.xml, beans.xml .. , , (.. glassfish-web.xml), .

( ) Java EE-?

, , glassfish-web.xml. , JavaEE web.xml, .

, Payara GlassFish, - , Google, Payara, GlassFish 4.x.

Payara Server GlassFish, , . , GlassFish 4 https://javaee.imtqy.com/glassfish/documentation4 , Payara https://docs.payara.fish/. , , , , , , GlassFish . , GlassFish 5, , 3.1.2, .

+4

Source: https://habr.com/ru/post/1692239/


All Articles