[jboss-jira] [JBoss JIRA] Created: (JBRULES-3125) Including compression support (gzip) to optimize network traffic between server and agent
Tarley Lana (JIRA)
jira-events at lists.jboss.org
Mon Jul 11 14:16:24 EDT 2011
Including compression support (gzip) to optimize network traffic between server and agent
-----------------------------------------------------------------------------------------
Key: JBRULES-3125
URL: https://issues.jboss.org/browse/JBRULES-3125
Project: Drools
Issue Type: Patch
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.1.1.FINAL
Environment: drools-5.1.1-guvnor-standalone, jboss-4.2.3.GA
Reporter: Tarley Lana
Assignee: Mark Proctor
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>
<!-- ARKHI / Rackspace -->
<resource source='http://127.0.0.1:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/araujo.ecf/LATEST'
type='PKG' basicAuthentication='enabled' username='ecf' password='senha'/>
</add>
</change-set>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list