OK, I understand that EARs have a reduced priority...
To replace my EAR I have to do the following, and need some hints:
1) A file -ds.xml is a JBoss service module, and has to deployed separately.
2) A file -jboss-beans.xml is a JBoss service module, and has to deployed separately, but after the file of 1). How do I ensure this deployment order?
3) The EAR has 2 WARs: one having the login-config BASIC (for REST), and the other the login-config FORM (for the web app). Is it possible to unify these 2 WARs?
If they essentially fall under URI based rules, you should be able to integrate the two.