Sun GlassFish Enterprise Server v3 Prelude Administration Guide

ProcedureTo Create an HTTP Listener

The remote create-http-listener command enables you to create an HTTP listener.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Create an HTTP listener by using the create-http-listener(1) command.

  3. To apply your changes, restart Enterprise Server.

    1. Stop Enterprise Server.

      For instructions, see To Stop a Domain (or Server).

    2. Start Enterprise Server.

      For instructions, see To Start a Domain (or Server).

Example 8–1 Creating an HTTP Listener

The following example command creates an HTTP listener named sampleListener that uses a non-default number of acceptor threads. Security is not enabled at runtime.

asadmin create-http-listener --listeneraddress 
--listenerport 7272 --defaultvs server --servername 
--acceptorthreads 100 --securityenabled=false 
--enabled=false sampleListener

Information similar to the following is displayed:

Command create-http-listener executed successfully.

See Also

To see the full syntax and options of the command, type asadmin help create-http-listener at the command line.