• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EAR/WAR/JAR Architecture

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic