1 2 Previous Next 20 Replies Latest reply: Mar 6, 2013 11:07 AM by Eugine Maslov RSS

    GZip compression for connector in JBoss 7.0.x

    Chuck May Newbie

      We are converting a project from 4.2.3 to 7 (currently 7.0.1).  Everything is working except that we can find no reference on how to turn on gzip compression in the connector.  This is how we did it in 4.2.3:

       

          <Connector port="443" address="${jboss.bind.address}" protocol="HTTP/1.1" SSLEnabled="true"

                   maxThreads="150" scheme="https" secure="true"

                   clientAuth="false" sslProtocol="TLS"

                   emptySessionPath="true" compression="on"

                   compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript"

                   keystoreFile="${jboss.server.home.dir}/conf/keystore" keystorePass="*****"/>

       

      and this is what we have so far in 7:

       

         <subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">

            <connector name="https" protocol="HTTP/1.1" socket-binding="https" scheme="https"

                    enable-lookups="false" secure="true">

               <ssl name="ssl" password="seerdms" certificate-key-file="../bin/keystore" protocol="TLSv1"/>

            </connector>

            <virtual-server name="default-host" enable-welcome-root="true">

               <alias name="localhost"/>

               <access-log />

            </virtual-server>

         </subsystem>

       

      I've looked through jboss-as-web_1_0.xsd and seen no reference to the "compression" attribute.  Is there another way to accomplish this?  Seems like I must be missing something but searching the documentation and online has returned nothing so far.

       

      Thanks for any help,

       

      Chuck

        1 2 Previous Next