Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EAR/WAR/JAR Architecture

 
Elle Atechsy
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can anyone tell me how code scope within ear & war files? Or, can you tell me where to find the information.

Ex. of what I want to do.

1. Maintain only 1 EAR, but have many WARs that share some common code.
2. Since, multiple WAR files need to use common code, can I place the common code in one WAR's class folder (or is JAR better? if so, where should it be? in the WAR's lib or can it be directly in the EAR, outside of any WARs?)

Thanks for any assistance in Advance.

Thanks,
Keili
 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the referencing jar/war's META-INF/MANIFEST.MF add the Class-Path entry


[ April 13, 2007: Message edited by: Chu Tan ]
[ April 13, 2007: Message edited by: Chu Tan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic