Use the subcommands in this procedure to create an internet connection with the full range of listener options. A network listener is created behind the scenes. For the shortcut version of this process , see To Create an HTTP Network Listener.
Ensure that the server is running.
Remote subcommands require a running server.
Create an HTTP or HTTPS protocol by using the create-protocol(1) subcommand with the --securityenabled option.
To use the built-in http-listener-1 HTTP protocol, or http-listener-2 HTTPS protocol, skip this step.
Create an HTTP configuration by using the create-http(1) subcommand.
To use a built-in protocol, skip this step.
Create a transport by using the create-transport(1) subcommand.
To use the built-in tcp transport, skip this step.
(Optional) Create a thread pool by using the create-threadpool(1) subcommand.
To avoid using a thread pool, or to use the built-in http-thread-pool thread pool, skip this step.
For additional thread pool information, see Chapter 5, Administering Thread Pools.
Create an HTTP listener by using the create-network-listener(1) subcommand.
Specify a protocol and transport, optionally a thread pool.
To apply your changes, restart GlassFish Server.
See To Restart a Domain.
You can also view the full syntax and options of the subcommand by typing a command such as asadmin help create-http-listener at the command line.