Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss deployment descriptor files

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Peter for answering my questions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic