-
Patch
-
Resolution: Unresolved
-
Major
-
None
-
5.1.1.FINAL
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 "
\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>