File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes using classes outside the webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "using classes outside the webapp" Watch "using classes outside the webapp" New topic
Author

using classes outside the webapp

Dominic Steng�rd
Ranch Hand

Joined: Feb 05, 2001
Posts: 186
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


Dominic Steng�rd<br />Sun Certified Java 2 Programmer
SAFROLE YUTANI
Ranch Hand

Joined: Jul 06, 2001
Posts: 257
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

Joined: Feb 05, 2001
Posts: 186
Thanks Safrole for your advice!
[ April 03, 2002: Message edited by: Dominic Steng�rd ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: using classes outside the webapp
 
Similar Threads
Refer To dir & files in WAR
Driver conflict
MVC without using struts
Servlet can't find intialisation paramters
Casting gone Wild - ClassCastException