I have a huge problem here... and I can't think of a simple solution for it, I'm 
hoping u guys can give some "light". :)
 
Let me first describe the "environment" here, then the problem.
 
We have here a webapp called FAP (c:\tomcat\fap). It is composed of:
/fap/*.jsp (like a hundred of them)
/fap/WEB-INF/classes/finep (this package finep has a lot of subpackages)
/fap/WEB-INF/classes/finep/DAO.class <-- here the problem resides...
/fab/lib/OracleDrivers.jar
 
the class DAO provides the Connection to an Oracle database...
 
so far, everything is fine... but here's the thing... this webapp gets replicated... 
the whole dir, because there are other instances of this system with small changes, 
and we didn't have the time to create a self-configuring app to allow that... so we 
copy the whole dir and make the necessary changes... BUT... the classes never 
change... only the JSPs... AND another thing that may change is the database (and of 
course DAO)... so how it is done?
 
we have /fap with DAO.class pointing to a specific db URL and;
we have (for example) /fap2 with a few JSPs changes and DAO.class pointing to another 
URL.
 
this of course sux! If we wanna change the database of a specific webapp we have to 
re-compile DAO and place it there... and if we change a class (any class) we have to 
update it in ALL the contexts...
 
What I want:
I would like to place the package "finep" and the OracleDrivers in the global context 
(c:\tomcat\common\classes, \lib), so all would be pretty and centralized; and create 
something like a Connection Dispatcher (also in the global context) that would receive 
requests from the JSPs and provide a Connection to the specific URL based in which 
context that JSP was when the request was made. I don't know if that's possible... I'm 
just guessing... of course I want do this as painless as possible... cuz we have like 
80 classes and more than 150 JSPs...
 
to confuse??? My english also sux... sorry!
 
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED] 
.:| (21) 2555-0332

Reply via email to