This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Communication from two different web apps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Communication from two different web apps" Watch "Communication from two different web apps" New topic
Author

Communication from two different web apps

Massimo Giusti
Greenhorn

Joined: Jan 09, 2003
Posts: 9
Hi all,
I'm working with Tomcat 4.0 and I build two web applications: back-app and front-app!
I have created a package "job.authentication" in the back-app and I want use this package in a jsp in the front-app.
But when I try to import this package I receveid the error:
Package job.authentication not found in import
I shouldn't create a library .jar for classes in back-app (then refer this in the classpath), because I'm deployng both application and there are continuos changes.
Have you an idea for resolve my problem?
Thanks in advance,
MaX :roll:
Ryan Bailey
Ranch Hand

Joined: Feb 26, 2002
Posts: 134
Massimo,
If you need to use the same package in multiple webapps all you have to do is jar up the files to be used and place them in your TOMCAT_HOME/common/lib directory.
This directory is shared between all Webaps.
Hope this helps,
Ryan


SCJP 1.4, SCWCD
Java: The power, elegance, and simplicity of a hand grenade
Massimo Giusti
Greenhorn

Joined: Jan 09, 2003
Posts: 9
Thank you very much
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Communication from two different web apps
 
It's not a secret anymore!