Hi,

if you want to use different instances of your application in a single servlet
engine, you have to make sure that the necessary classes, especially if they contain
static variables, are located in /WEB-INF/classes or /WEB-INF/lib. That you way you
can make sure that they are loaded by different classloaders (if the engine obeys to
the spec) and do not interfere. For classes with static variables this is essential.

The URL problem should be solved by simply calling getServletContext() or using
relative URLs in the whole application (probably even better).

Besides that I don't know what problem one could have...

Hope this helps,

-hendrik
- - - - - - - - - - - - - - - - - - - - - - - - - - -
  tagtraum industries      http://www.tagtraum.com/
  jo!                 small&smart 2.2 servletengine
  Java Server & Servlets   The web-application book
  The WebApp Framework        http://www.webapp.de/


Nicholson Robert wrote:

> Yes I'm aware of that. I'm just asking if anybody does this today or has
> another solution to being able to verify different versions existing
> concurrently within the same servlet engine.
>
> On Tue, 31 Oct 2000, Hernandez, Rey wrote:
>
> > I would think you would just need to use request.getServletContext() for all
> > URL generation.  Then your app would be totally independent of context and
> > you should be able to move between them all easily.
> >
> > Rey
> >
> > -----Original Message-----
> > From: Nicholson Robert [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 31, 2000 1:38 PM
> > To: [EMAIL PROTECTED]
> > Subject: Deploying multiple version of an application within the same
> > servlet engine?
> >
> >
> > So,
> >
> > Is there anybody that uses different "contexts" for
> > test/production/development?
> >
> > If so how do you manage your url generation?
> >
> > It seem to me that you can bind an application to a context but you'll
> > have to be sure that all urls generated reference that context.
> >
> > How do people tackle the problem of installing multiple versions of their
> > application within the same application server?
> >

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to