You are stuck then. There is no vehicle to dynamically change the
classpath based on some data field. I would strongly encourage you to
invest a little time in refactoring your code base. Most modern IDEs
have tools that make the process almost as simple as point and click.
The simplest solution to the code itself is to create an interface and
have all your competing classes implement it. To minimize the work, the
interface can be named the name you have now and just rename the
implementation classes. Then you just have to adjust the placed where
these objects are instantiated.
--David
Rocky Agrawal wrote:
Hi everyone,
I have a web application in which I have different user domains/groups.
There are some classes, which are customized according to the user
groups/domain with the same quantified class name, but in different jar
files. Based on the login information, I need to change the classpath for
a particular session or use custom class loaders, such that the classpath
reflects the user group/domain currently logged in.
What are the possible ways to do it?
Please note that I can not deploy multiple web applications and I can not
use a factory kind of thing to get classes as the existing code is vast
and I need to find a solution which will not require changing the
existing
codebase.
thanks a lot.
warm regards,
rohit.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]