Hi,
Thanks for your fast response. That definitely helped me, but like you suggested I'll pass you the exact situation that I have. The Java "application" in question is a tool that accesses one of the clients legacy systems for some information. I am trying to solve 2 problems:
1. This Java application is shared by the servlet in Tomcat and a completely separate client/server application that does not go through the web server at all.
2. We have different
testing environments which could, during development phases, contain different copies of this Java application.
I was trying to figure out the most efficient way to handle these situations without having 2 identical class libraries for each testing environment (one in Tomcat and one outside of it). The client/server application can get to all of the development and testing environments, so I thought it would be great if the servlet could hit the same classes by somehow dynamically setting the CLASSPATH based on an input parameter.
I could probably have the client/server app call the Java classes in the web server, but those directories are already set up. The only thing I was thinking about was trying Runtime.exec() from the servlet but was trying to see if there is a better way to do this.
Thanks again!
[ September 22, 2006: Message edited by: richa Shrivastava ]
[ September 22, 2006: Message edited by: richa Shrivastava ]