Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3125

Including compression support (gzip) to optimize network traffic between server and agent

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 5.1.1.FINAL
    • drools-core

      This patch makes the class "org.drools.io.impl.UrlResource" support the download of compressed rules. Below are the settings required to enable transmission of compressed rules over the network:

      SERVER SIDE

      1) In this example I used the "drools-5.1.1-guvnor-standalone" as a rule base;
      2) Include the following line in the file "

      {JBOSS-HOME}

      \server\default\deploy\jboss-web.deployer\server.xml" to enable compression of the rules:

      <Connector port="8080" address="${jboss.bind.address}"
      maxThreads="250" maxHttpHeaderSize="8192"
      emptySessionPath="true" protocol="HTTP/1.1"
      enableLookups="false" redirectPort="8443" acceptCount="100"
      connectionTimeout="20000" disableUploadTimeout="true" compression="force"
      compressableMimeType="application/x-download"
      compressionMinSize="100"/>

      CLIENT SIDE
      1) Set the "ChangeSet.xml" for the rules of the server as the example below:

      <change-set xmlns='http://drools.org/drools-5.0/change-set'
      xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
      xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd' >
      <add>
      <resource source='http://127.0.0.1:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/app/LATEST'
      type='PKG' basicAuthentication='enabled' username='usr' password='psw'/>
      </add>
      </change-set>

            mproctor@redhat.com Mark Proctor
            tarley.lana_jira Tarley Lana (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Archived: