Skip Navigation Links | |
Exit Print View | |
Oracle GlassFish Server 3.1-3.1.1 High Availability Administration Guide |
1. High Availability in GlassFish Server
2. Setting Up SSH for Centralized Administration
3. Administering GlassFish Server Nodes
4. Administering GlassFish Server Clusters
5. Administering GlassFish Server Instances
6. Administering Named Configurations
The default-config Configuration
Automatically Created Configurations
Directory for Configuration Synchronization
Creating, Listing, and Deleting Named Configurations
To Create a Named Configuration
To List the Named Configurations in a Domain
To List the Targets of a Named Configuration
To Delete a Named Configuration
Modifying Properties for Named Configurations and Instances
Properties for Port Numbers in a Named Configuration
7. Configuring Web Servers for HTTP Load Balancing
8. Configuring HTTP Load Balancing
9. Upgrading Applications Without Loss of Availability
10. Configuring High Availability Session Persistence and Failover
11. Configuring Java Message Service High Availability
The properties in a named configuration define port numbers for unclustered instances that reference the configuration or clustered instances that inherit the configuration. An instance initially obtains port numbers from the configuration that the instance references or inherits. To avoid port conflicts, edit the properties of named configurations and instances.
The following topics are addressed here:
The default configuration default-config contains properties that define the initial values of port numbers in a configuration that is copied from default-config. When an instance or a cluster that references the configuration is created, these properties are set for the instance.
You can create additional system properties for a configuration either by specifying the --systemproperties option of the copy-config(1) subcommand or by using the create-system-properties(1) subcommand. To reference a system property from the configuration, use the ${prop-name} notation, where prop-name is the name of the system property.
For example, if a configuration defines additional HTTP listeners, use system properties to define the ports for those listeners. However, these properties are not set automatically when an instance or a cluster that references the configuration is created. You must set these properties explicitly when you create the instance or cluster.
The properties in a named configuration that define port numbers are as follows:
This property specifies the port number of the HTTP port or HTTPS port through which the DAS connects to the instance to manage the instance. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
This property specifies the port number of the port that is used to listen for HTTP requests. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
This property specifies the port number of the port that is used to listen for HTTPS requests. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
This property specifies the port number of the port that is used for IIOP connections. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
This property specifies the port number of the port that is used for secure IIOP connections. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
This property specifies the port number of the port that is used for secure IIOP connections with client authentication. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
This property specifies the port number of the port that is used for connections to the Java Platform Debugger Architecture (JPDA) debugger. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
This property specifies the port number for the Java Message Service provider. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
This property specifies the port number on which the JMX connector listens. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
This property specifies the port number of the port that is used for connections to the Apache Felix Remote Shell. This shell uses the Felix shell service to interact with the OSGi module management subsystem. Valid values are 1–65535. On UNIX, creating sockets that listen on ports 1–1024 requires superuser privileges.
Use the get subcommand and the set subcommand in remote mode to modify a named configuration’s properties.
You might copy a configuration for use by instances that reside on the same host as instances that refer to the original configuration. In this situation, edit the properties of one of the configurations to ensure that instances that will refer to the configuration have the correct initial settings.
If you change the port number in a configuration, the port number is changed for any instance that references or inherits the configuration.
Remote subcommands require a running server.
asadmin> get configs.config.config-name.system-property.property-name.value
The name of the configuration whose properties you are modifying.
The name of the property that you are modifying. For a list of available properties, see Properties for Port Numbers in a Named Configuration.
asadmin> set configs.config.config-name.system-property.property-name.value=new-value
The name of the configuration whose properties you are modifying.
The name of the property that you are modifying. For a list of available properties, see Properties for Port Numbers in a Named Configuration.
The value to which you are setting the property.
Example 6-5 Modifying a Property of a Named Configuration
This example changes the value of the JMS_PROVIDER_PORT property in the clusterpresets-config configuration from 27676 to 27678.
asadmin> get configs.config.clusterpresets-config.system-property.JMS_PROVIDER_PORT.value configs.config.clusterpresets-config.system-property.JMS_PROVIDER_PORT.value=27676 Command get executed successfully. asadmin> set configs.config.clusterpresets-config.system-property.JMS_PROVIDER_PORT.value=27678 configs.config.clusterpresets-config.system-property.JMS_PROVIDER_PORT.value=27678 Command set executed successfully.
See Also
You can also view the full syntax and options of the subcommands by typing the following commands at the command line:
asadmin help get
asadmin help set
Use the get subcommand and the set subcommand in remote mode to modify the port numbers of an instance.
The port numbers of a instance are initially set in the configuration that the instance references or inherits from its parent cluster. Multiple instances that reside on the same host must each listen on a unique port number. Therefore, if multiple instances that reference or inherit the same configuration reside on the same host, a port conflict prevents all except one of the instances from starting. To avoid port conflicts, modify the port numbers on which individual instances listen.
If you modify an instance’s port number and later modify the port number in the instance's configuration, the instance’s port number remains unchanged.
The port numbers of an instance are stored as Java system properties. When GlassFish Server is started, it treats these properties in the same way as properties that are passed through the -D option of the Java application launcher.
Remote subcommands require a running server.
asadmin> get servers.server.instance-name.system-property.port-property.value
The name of the instance whose port numbers you are modifying.
The name of the property that corresponds to the port number that you are modifying. For a list of available properties, see Properties for Port Numbers in a Named Configuration.
asadmin> get servers.server.instance-name.system-property.port-property.value=new-value
The name of the instance whose port numbers you are modifying.
The name of the property that corresponds to the port number that you are modifying. For a list of available properties, see Properties for Port Numbers in a Named Configuration.
The value to which you are setting the port number.
Example 6-6 Modifying a Port Number for an Instance
This example changes the port number of the HTTP port or the HTTPS port for administration of the pmdsainst instance from 24849 to 24859.
asadmin> get servers.server.pmdsainst.system-property.ASADMIN_LISTENER_PORT.value servers.server.pmdsainst.system-property.ASADMIN_LISTENER_PORT.value=24849 Command get executed successfully. asadmin> set servers.server.pmdsainst.system-property.ASADMIN_LISTENER_PORT.value=24859 servers.server.pmdsainst.system-property.ASADMIN_LISTENER_PORT.value=24859 Command set executed successfully.
See Also
You can also view the full syntax and options of the subcommands by typing the following commands at the command line:
asadmin help get
asadmin help set