users@glassfish.java.net

Re: Configuring multiple instances of GF v3 on same machine, ports etc

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Mon, 21 Jun 2010 18:09:01 +0200

try "asadmin create-domain --portbase" : http://blogs.sun.com/alexismp/entry/flexible_glassfish_domain_creation_using
-Alexis

On 21 juin 2010, at 18:06, janne mattila wrote:

> I want to run multiple instances of Glassfish v3 on my machine. The installer gives option to change the HTTP port and Admin port.
>
> Many other ports are not changed by the installer though and cause port conflicts. HTTPS for example.
>
> What is the best way to configure the instances so that they can be run side to side? I changed glassfish\domains\domain1\config\domain.xml and modified https, jmx and was able to start the servers, but am unsure if I need to change more ports, and is domain.xml enough or do I need to change other config files too?
>
> Or is a better/more convenient alternative to changing files manually?