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

using classes outside the webapp

 
Dominic Steng�rd
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all javafreaks!
I've got a webapp (.war) up and running. As long as I only use the classes within this webapp everything works good, but when I try to reach one that is in another webapp I obviously run into trouble ... is there any way around this? Can I somehow include this webapp in another one and by doing so getting permissions to use those classes and packages?

Regards
 
SAFROLE YUTANI
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use an EAR file, which will contain your web apps. Place utility JAR files and EJB's at the root EAR level, and they automatically become available to your web apps.
SAF
 
Dominic Steng�rd
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Safrole for your advice!
[ April 03, 2002: Message edited by: Dominic Steng�rd ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic