[
https://issues.jboss.org/browse/JBRULES-3125?page=com.atlassian.jira.plug...
]
Tarley Lana updated JBRULES-3125:
---------------------------------
Description:
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/...
>
<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>
was:
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/...
>
<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>
Forum Reference:
http://drools.46999.n3.nabble.com/Is-there-any-way-to-compress-gzip-the-r...
(was:
http://drools.46999.n3.nabble.com/Is-there-any-way-to-compress-gzip-the-r...)
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
Labels: Compress, Compressed
Attachments: patch.txt
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/...
>
<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>
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira