users@glassfish.java.net

Re: GF3.1 setting properties using CLI commands

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Wed, 10 Aug 2011 13:55:32 -0500

The CLI commands for setting the compression and compression-mime-type
attributes for an http listener are:

asadmin set
configs.config.server-config.network-config.protocols.protocol.http-listener-1.http.compression=on
asadmin set
configs.config.server-config.network-config.protocols.protocol.http-listener-1.http.compressable-mime-type=text/html,text/xml,text/plain,text/css

Note the use of "http" under the listener name rather than property.
Also, this is set in the config for the server rather than in the server
itself.

Tom