users@glassfish.java.net

Can I run multiple instances of one application

From: Blake McBride <blake_at_arahant.com>
Date: Tue, 16 Apr 2013 16:38:13 -0500

Greetings,

I have a web application that connects to a single database and serves X
number of simultaneous users without a problem.

I would like to start up another instance of the same application that
would connect to a different database and serve Y simultaneous users from a
different URL.

If this is possible with glassfish, presumably it would be able to use a
single copy of the code base with independent and isolated data spaces.

All the applications instances (for now) would be run on the same machine.

I know I can just copy the application code, reconfigure for another
database, and boot it as a separate application. The point is not have to
have multiple copies of the application on the disk or in memory. The only
things different between the instances would be the database it points to,
the URL to access it, and the memory it takes to support the runtime data.

I need this because the application is very large (15,000+ classes). I
want to achieve the ability of creating many independent instances running
without the need to have multiple copies of the code both on disk and in
memory.

Thanks.

Blake McBride