Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.4
    • Component/s: Geronimo
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      Implement geronimo2x container.

      This one will be easy, since Geronimo 2.x can get all configuration options (most notable, ports) using environment variables.

        Issue Links

          Activity

          Show
          Savas Ali Tokmen added a comment - Interesting documents: https://cwiki.apache.org/GMOxDOC20/running-multiple-instances-of-geronimo.html https://cwiki.apache.org/GMOxDOC21/installation-and-configuration.html#Installationandconfiguration-Initialconfiguration
          Hide
          Savas Ali Tokmen added a comment -

          The config-substritutions.properties file tells us how to replace all variables:

          # Put variables and their substitution values in this file. 
          # They will be used when processing the corresponding config.xml. 
          # Values in this file can be overridden by environment variables and system properties 
          # by prefixing the property name with 'org.apache.geronimo.config.substitution.' 
          # For example, an entry such as hostName=localhost 
          # can be overridden by an environment variable or system property org.apache.geronimo.config.substitution.hostName=foo 
          # When running multiple instances of Geronimo choose a PortOffset value such that none of the ports conflict. 
          # For example, try PortOffset=10 
          #Tue Jun 22 17:51:30 EDT 2010
          
          AJPPort=8009
          
          ORBPort=6882
          
          geronimo={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwAAAAEArVToThqcjvbXFD5C2uUmpwdAADQUVT
          
          trustStorePassword={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwAAAAEArVToThqcjvbXFD5C2uUmpwdAADQUVT
          
          MaxThreadPoolSize=500
          
          ResourceBindingsNamePattern=
          
          SMTPHost=localhost
          
          ResourceBindingsQuery=?\#org.apache.geronimo.naming.ResourceSource
          
          DerbyPort=1527
          
          COSNamingPort=1050
          
          webcontainer=TomcatWebContainer
          
          OpenEJBPort=4201
          
          ORBSSLPort=2001
          
          PortOffset=0
          
          ActiveMQStompPort=61613
          
          JMXPort=9999
          
          ClusterNodeName=NODE
          
          EndPointURI=http\://localhost\:8080
          
          NamingPort=1099
          
          DefaultWadiSweepInterval=36000
          
          WebConnectorConTimeout=20000
          
          WADIClusterName=DEFAULT_WADI_CLUSTER
          
          geronimo-default={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwAAAAEArVToThqcjvbXFD5C2uUmpwdAADQUVT
          
          HTTPSPort=8443
          
          MinThreadPoolSize=200
          
          ReplicaCount=2
          
          ServerHostname=0.0.0.0
          
          ActiveMQPort=61616
          
          SMTPPort=25
          
          keyStorePassword={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwAAAAEArVToThqcjvbXFD5C2uUmpwdAADQUVT
          
          webcontainerName=tomcat6
          
          ResourceBindingsNameInNamespace=jca\:
          
          JMXSecurePort=9998
          
          DefaultWadiNumPartitions=24
          
          HTTPPort=8080
          
          FarmName=DEFAULT_FRAM
          
          ResourceBindingsFormat={groupId}/{artifactId}/{j2eeType}/{name}
          
          RemoteDeployHostname=localhost
          
          TmId=71,84,77,73,68
          
          
          Show
          Savas Ali Tokmen added a comment - The config-substritutions.properties file tells us how to replace all variables: # Put variables and their substitution values in this file. # They will be used when processing the corresponding config.xml. # Values in this file can be overridden by environment variables and system properties # by prefixing the property name with 'org.apache.geronimo.config.substitution.' # For example, an entry such as hostName=localhost # can be overridden by an environment variable or system property org.apache.geronimo.config.substitution.hostName=foo # When running multiple instances of Geronimo choose a PortOffset value such that none of the ports conflict. # For example, try PortOffset=10 #Tue Jun 22 17:51:30 EDT 2010 AJPPort=8009 ORBPort=6882 geronimo={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwAAAAEArVToThqcjvbXFD5C2uUmpwdAADQUVT trustStorePassword={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwAAAAEArVToThqcjvbXFD5C2uUmpwdAADQUVT MaxThreadPoolSize=500 ResourceBindingsNamePattern= SMTPHost=localhost ResourceBindingsQuery=?\#org.apache.geronimo.naming.ResourceSource DerbyPort=1527 COSNamingPort=1050 webcontainer=TomcatWebContainer OpenEJBPort=4201 ORBSSLPort=2001 PortOffset=0 ActiveMQStompPort=61613 JMXPort=9999 ClusterNodeName=NODE EndPointURI=http\://localhost\:8080 NamingPort=1099 DefaultWadiSweepInterval=36000 WebConnectorConTimeout=20000 WADIClusterName=DEFAULT_WADI_CLUSTER geronimo-default={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwAAAAEArVToThqcjvbXFD5C2uUmpwdAADQUVT HTTPSPort=8443 MinThreadPoolSize=200 ReplicaCount=2 ServerHostname=0.0.0.0 ActiveMQPort=61616 SMTPPort=25 keyStorePassword={Simple}rO0ABXNyABlqYXZheC5jcnlwdG8uU2VhbGVkT2JqZWN0PjY9psO3VHACAARbAA1lbmNvZGVkUGFyYW1zdAACW0JbABBlbmNyeXB0ZWRDb250ZW50cQB+AAFMAAlwYXJhbXNBbGd0ABJMamF2YS9sYW5nL1N0cmluZztMAAdzZWFsQWxncQB+AAJ4cHB1cgACW0Ks8xf4BghU4AIAAHhwAAAAEArVToThqcjvbXFD5C2uUmpwdAADQUVT webcontainerName=tomcat6 ResourceBindingsNameInNamespace=jca\: JMXSecurePort=9998 DefaultWadiNumPartitions=24 HTTPPort=8080 FarmName=DEFAULT_FRAM ResourceBindingsFormat={groupId}/{artifactId}/{j2eeType}/{name} RemoteDeployHostname=localhost TmId=71,84,77,73,68
          Hide
          Savas Ali Tokmen added a comment - - edited

          To change the Geronimo's BASE directory (i.e., the directory that contains a /var directory), use:

          -Dorg.apache.geronimo.server.dir=$GERONIMO_BASE
          

          Command to start GERONIMO:

          java -Xmx512m -javaagent:$GERONIMO_HOME/bin/jpa.jar -Dorg.apache.geronimo.home.dir=$GERONIMO_HOME -Djava.endorsed.dirs=$GERONIMO_HOME/lib/endorsed:$JAVA_HOME/lib/endorsed -Djava.ext.dirs=$GERONIMO_HOME/lib/ext:$JAVA_HOME/lib/ext -Dorg.apache.geronimo.server.dir=$GERONIMO_BASE -Djava.io.tmpdir=$GERONIMO_BASE/var/temp -jar $GERONIMO_HOME/bin/server.jar --long
          
          Show
          Savas Ali Tokmen added a comment - - edited To change the Geronimo's BASE directory (i.e., the directory that contains a /var directory), use: -Dorg.apache.geronimo.server.dir=$GERONIMO_BASE Command to start GERONIMO: java -Xmx512m -javaagent:$GERONIMO_HOME/bin/jpa.jar -Dorg.apache.geronimo.home.dir=$GERONIMO_HOME -Djava.endorsed.dirs=$GERONIMO_HOME/lib/endorsed:$JAVA_HOME/lib/endorsed -Djava.ext.dirs=$GERONIMO_HOME/lib/ext:$JAVA_HOME/lib/ext -Dorg.apache.geronimo.server.dir=$GERONIMO_BASE -Djava.io.tmpdir=$GERONIMO_BASE/var/temp -jar $GERONIMO_HOME/bin/server.jar --long
          Hide
          Savas Ali Tokmen added a comment -

          Committed revision 2507.

          Show
          Savas Ali Tokmen added a comment - Committed revision 2507.

            People

            • Assignee:
              Savas Ali Tokmen
              Reporter:
              Savas Ali Tokmen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: