File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBoss deployment descriptor files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss deployment descriptor files" Watch "JBoss deployment descriptor files" New topic
Author

JBoss deployment descriptor files

Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
Hi,

The purpose of annotations is to get rid of writing deployment desciptor files. then why do we have to write application.xml and jboss-app.xml files. Can't we auto generate these files?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5778
    
    7

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.


JBoss In Action
Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
Peter,

What does <loader-repository> in jboss-app.xml do? why do we need to have a unique class loader?

Thanks,
Srikanth.
[ November 20, 2008: Message edited by: Srikanth Reddy ]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5778
    
    7

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.
Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
Thank you very much Peter for answering my questions.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JBoss deployment descriptor files
 
Similar Threads
open directory structure deployment on jboss
Deployment descriptor
how to make use of deployment ment directory other than Default directory in jboss
EJB's in two different Application Servers
jboss-5.1.0.GA - jboss.xml