2.13.1 create-protocol
Adds a new protocol.
Synopsis
asadmin [asadmin-options] create-protocol [--help] [--securityenabled={false|true}] [--target target] protocol-name
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The create-protocol subcommand creates a protocol. This command is supported in remote mode only.
Precondition
DAS has to be in a running state.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --securityenabled={false|true}
-
If set to true, the protocol runs SSL. Also it can turn SSL2 or SSL3 ON or OFF and set ciphers using an SSL element. The security setting globally enables or disables SSL by making certificates available to the server instance.
Type: Boolean
The following values can be specified:
-
true
-
false
Default value: false
-
- --target target
-
Creates the protocol only on the specified target.
Type: String
The following values can be specified:
-
server
Creates the protocol on the default server instance. This is the default value.
-
configuration-name
Creates the protocol in the specified configuration.
-
cluster-name
Creates the protocol on all server instances in the specified cluster.
-
standalone-instance-name
Creates the protocol on the specified standalone server instance.
Default value: server
-
- protocol-name
-
Specifies the name of the protocol.
Type: String
The following values can be specified:
-
Specify the protocol name
Default value: N/A
-
Examples
The following example creates a protocol on the server instance instance1.
asadmin create-protocol --target instance1 --securityenabled=true http-1
Exit Status
Exit Status |
Explanation |
---|---|
0 |
command executed successfully. |
1 |
error in executing the command. |