Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 19392 invoked from network); 7 Feb 2008 20:01:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 20:01:43 -0000 Received: (qmail 64015 invoked by uid 500); 7 Feb 2008 20:01:32 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 63998 invoked by uid 500); 7 Feb 2008 20:01:32 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 63987 invoked by uid 99); 7 Feb 2008 20:01:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 12:01:32 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.49.80] (HELO web53210.mail.re2.yahoo.com) (206.190.49.80) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 07 Feb 2008 20:00:56 +0000 Received: (qmail 65624 invoked by uid 60001); 7 Feb 2008 20:01:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=zDFJfvmTzuTkzQ72ci5CIJOgXpj/1wOscCH82FoI1qzgKud8uV2eiu8q7FF7B3xZk4cGxUOHQbRaIYrgY+LnQzCQKEkD4FMg1ecWYYh9i5/bVBe6HV+6cYRvJmgS93fPTh6ZxFm4lGnovZE6LUhs7w+Gi3WWvICHdYsydWO0P7I=; Received: from [63.83.48.10] by web53210.mail.re2.yahoo.com via HTTP; Thu, 07 Feb 2008 12:01:02 PST X-Mailer: YahooMailRC/818.31 YahooMailWebService/0.7.162 Date: Thu, 7 Feb 2008 12:01:02 -0800 (PST) From: Moni Reply-To: Moni Subject: Can you bind 2 separate geronimo server instances to 2 different ip addresses? To: user@geronimo.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-713468647-1202414462=:65271" Message-ID: <214759.65271.qm@web53210.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-713468647-1202414462=:65271 Content-Type: text/plain; charset=us-ascii Can you bind 2 separate geronimo server instances to 2 different ip addresses? I changed the all IPs and host names in the config-substitutions.properties file for the new instance. I even changed the BASE_DIR to point to the new geronimo installation directory. But when I try to start up the server it gives the port in use error. Is this possible at all running to instances of the server on 2 different IPs on the box? I have seen the following setup, but our configuration thus far has been to use different IPs for different server installs. Any inputs will be much appreciated. Multiple Server Instances A server instance is easy to create in Geronimo: Set the org.apache.geronimo.server.name system property to the instance name before you start the server. Use the syntax -Dorg.apache.geronimo.server.name=foo to name your instance foo. There are two ways to do this: Add this to your GERONIMO_OPTS environment variable, or Pass it on the java command-line invocation of the server. This server's var and deploy directory will then be under /foo. org.apache.geronimo.server.name may be any pathname relative to (descending from) . For example, servers/bar would put the server's var directory under /servers/bar. The org.apache.geronimo.server.dir system property may also be used, and it overrides org.apache.geronimo.server.name. Use org.apache.geronimo.server.dir to specify an absolute path, which need not be relative to . For example, /ag20/servers/bar would put the server's var directory under /ag20/servers/bar. Otherwise, the two system properties behave the same. mkdir foo Copy var/* to foo/var/ Edit foo/var/config/config-substitutions.properties, uncomment PortOffset and change it to a value like 1,2,10,11,12,20,21,22,... so the ports in the new server instance will not conflict with existing server instances you already have defined and/or started. (Alternatively start the server with the property -Dorg.apache.geronimo.config.substitution.PortOffset=3 in the command line) Start the server. To deploy applications to the new server instance, you need to specify the NamingPort+PortOffset used, such as for PortOffset=1: deploy -port 1100 list-modules Thanks, Moni ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs --0-713468647-1202414462=:65271 Content-Type: text/html; charset=us-ascii
Can you bind 2 separate geronimo server instances to 2 different ip addresses? 
 
I changed the all IPs and host names in the config-substitutions.properties file for the new instance.  I even changed the BASE_DIR to point to the new geronimo installation directory.  But when I try to start up the server it gives the port in use error. 
 
Is this possible at all running to instances of the server on 2 different IPs on the box?
 
I have seen the following setup, but our configuration thus far has been to use different IPs for different server installs. 
 
Any inputs will be much appreciated.
 
 

Multiple Server Instances

A server instance is easy to create in Geronimo:

  1. Set the org.apache.geronimo.server.name system property to the instance name before you start the server.
    • Use the syntax -Dorg.apache.geronimo.server.name=foo to name your instance foo.
    • There are two ways to do this:
      1. Add this to your GERONIMO_OPTS environment variable, or
      2. Pass it on the java command-line invocation of the server.
    • This server's var and deploy directory will then be under <geronimo_home>/foo.
    • org.apache.geronimo.server.name may be any pathname relative to (descending from) <geronimo_home>. For example, servers/bar would put the server's var directory under <geronimo_home>/servers/bar.
    • The org.apache.geronimo.server.dir system property may also be used, and it overrides org.apache.geronimo.server.name.
    • Use org.apache.geronimo.server.dir to specify an absolute path, which need not be relative to <geronimo_home>. For example, /ag20/servers/bar would put the server's var directory under /ag20/servers/bar. Otherwise, the two system properties behave the same.
  2. mkdir foo
  3. Copy var/* to foo/var/
  4. Edit foo/var/config/config-substitutions.properties, uncomment PortOffset and change it to a value like 1,2,10,11,12,20,21,22,... so the ports in the new server instance will not conflict with existing server instances you already have defined and/or started. (Alternatively start the server with the property -Dorg.apache.geronimo.config.substitution.PortOffset=3 in the command line)
  5. Start the server.

To deploy applications to the new server instance, you need to specify the NamingPort+PortOffset used, such as for PortOffset=1:

  • deploy -port 1100 list-modules

Thanks,

Moni



Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-713468647-1202414462=:65271--