Even with annotations, there are still good reasons to use configuration files. I use annotations for things that should not change, and configuration files for things that are based on the environment. For example, one of the settings in jboss-web.xml is identifying which login module to use - that is definitely environment dependent.
But I agree on the application.xml - an IDE (or Ant or Maven) should be able to build this file based on what is being placed into the EAR.
You do not need a loader repository unless you want to force scoping of classes. You should need to scope your classes only if your EAR contains a JAR that is at a different version that a JAR already supplied by JBOssAS or by some other app. For example, if your app relies on a version of Hibernate different from what comes with JBossAS.
Joined: Jun 03, 2005
Thank you very much Peter for answering my questions.