Sun GlassFish Enterprise Server v3 Administration Guide

ProcedureTo Create an Internet Connection

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.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. 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.

  3. Create an HTTP configuration by using the create-http(1) subcommand.

    To use a built-in protocol, skip this step.

  4. Create a transport by using the create-transport(1) subcommand.

    To use the built-in tcp transport, skip this step.

  5. (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.

  6. Create an HTTP listener by using the create-network-listener(1) subcommand.

    Specify a protocol and transport, optionally a thread pool.

  7. To apply your changes, restart Enterprise Server.

    See To Restart a Domain.

See Also

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.