posted 21 years ago
I mean to say i want to call classes of another application from one application.
I have two web applications
WebApp1
-jsp
- web-inf--> classes-->webapp1Classes
WebAPp2
-jsp
- web-inf--> classes-->webapp2Classes
In my webapp1, there are 5 communities which uses this source code.I have 5 context in tomcat. All reference this web application.
In my webapp2, I am kepping the listing of all the communities which reference the webapp1 because I am using this webapplication as a configuration application for webapp1. In this application, I am creating the communities and creating the databse and some admin info. Actually, I am having a web based product and i have a 100 customers. so i cant keep 100 source code. So I am creating the different database , differenet context but they are all referencing the same source code.
How we are setting up the community?
suppose we have a new customer. we create the datadbase and users and make the context in tomcat and start a new webapplication using the same source code. we also customise the look and feel. So it is not a part of my application.
How we are handling the connectons?
We are saving all the database info like username password , hostname, max users in one table. and make the listing of allthe communities with database info. when a request commes it checks the contextpath and get the corresponding information.
now what we want to do?
we want to create an interface or application which dynamically create the database and users using template. and update look and feel.
So I have made that interface but now I am kepping that listing in this application which contains all the information.
Now I want to access that list for any request to get database info from other application.
Means webapp2 jsp has to access the classes of webapp1 classes.
Pl help me out? what should I do? Its working fine with tomat3.2.2 but in tomcat 4 its is giving error.
Thanx in advance