Re: [rules-users] Is there any way to compress (gzip) the rules package to optimize network traffic between server and agent?

2011-07-12 Thread tarley.lana
Problem solved. I sent the patch - see
https://issues.jboss.org/browse/JBRULES-3125.

Thanks

--
View this message in context: 
http://drools.46999.n3.nabble.com/Is-there-any-way-to-compress-gzip-the-rules-package-to-optimize-network-traffic-between-server-and-a-tp3129297p3162411.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Is there any way to compress (gzip) the rules package to optimize network traffic between server and agent?

2011-07-04 Thread tarley.lana
Geoffrey Thanks for the reply,
I will include this feature as an option, because this problem is a
architectural risk of my project. How can I send the patch to the community
with these changes?


--
View this message in context: 
http://drools.46999.n3.nabble.com/Is-there-any-way-to-compress-gzip-the-rules-package-to-optimize-network-traffic-between-server-and-a-tp3129297p3137525.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Is there any way to compress (gzip) the rules package to optimize network traffic between server and agent?

2011-07-01 Thread tarley.lana
We have a drools application composed of almost 1000 rules. The rules
deployment package has almost 8MB and we need to distribute it over a 100
Kbps network for offline use on some client machines.
If we could zip this package, it would require only 237Kbytes (instead 8MB).
It seems, however, the class org.drools.agent.impl.KnowledgeAgentImpl
doesn't support  gzip compression.
Is it right? Is there any workaround for this problem?

Thanks in advance.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Is-there-any-way-to-compress-gzip-the-rules-package-to-optimize-network-traffic-between-server-and-a-tp3129297p3129297.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Is there any way to compress (gzip) the rules package to optimize network traffic between server and agent?

2011-07-01 Thread Michael Anstis
Whilst I don't believe there is anything out of the box could you just not
write a JEE5 javax.servlet.Filter to perform the compression for you?

On 1 July 2011 14:28, tarley.lana tarley.l...@gmail.com wrote:

 We have a drools application composed of almost 1000 rules. The rules
 deployment package has almost 8MB and we need to distribute it over a 100
 Kbps network for offline use on some client machines.
 If we could zip this package, it would require only 237Kbytes (instead
 8MB).
 It seems, however, the class org.drools.agent.impl.KnowledgeAgentImpl
 doesn't support  gzip compression.
 Is it right? Is there any workaround for this problem?

 Thanks in advance.

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Is-there-any-way-to-compress-gzip-the-rules-package-to-optimize-network-traffic-between-server-and-a-tp3129297p3129297.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Is there any way to compress (gzip) the rules package to optimize network traffic between server and agent?

2011-07-01 Thread tarley.lana
Ok, but I have to modify the class org.drools.agent.impl.KnowledgeAgentImpl
for it to do unzip the package on the client. There is no standard mechanism
for this?

--
View this message in context: 
http://drools.46999.n3.nabble.com/Is-there-any-way-to-compress-gzip-the-rules-package-to-optimize-network-traffic-between-server-and-a-tp3129297p3129523.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Is there any way to compress (gzip) the rules package to optimize network traffic between server and agent?

2011-07-01 Thread Geoffrey De Smet
Nothing out-of-the-box AFAIK, but a patch (or better yet a pull request) 
is welcome.

Just wrapping both ends in ZipOutputstream and ZipInputstream should do 
the trick,
but then we'd have always zipping, but we might want it optional.

If we want optional zipping, the client should include a header/argument 
to the server
to ask it in zip format (similar like the HTTP protocol) and the server 
should always support both (just do what the client asks him to do).
That we we don't rely in the client and server having to be configured 
the same and crashing wierdly if they aren't.

Op 01-07-11 16:42, tarley.lana schreef:
 Ok, but I have to modify the class org.drools.agent.impl.KnowledgeAgentImpl
 for it to do unzip the package on the client. There is no standard mechanism
 for this?

 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Is-there-any-way-to-compress-gzip-the-rules-package-to-optimize-network-traffic-between-server-and-a-tp3129297p3129523.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


-- 
With kind regards,
Geoffrey De Smet


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users