Actually I gave you bad information. You were using the correct value for the 
key. Please ignore what I said previously.

Thanks,

Randy

-----Original Message-----
From: Speakman, Randy 
Sent: Thursday, September 01, 2011 10:42 AM
To: [email protected]
Subject: RE: Enable Compression

Christophe,

I think the problem is that the key should be "CLIENT_COMPRESSION" and not 
"org.apache.chemistry.opencmis.binding.clientcompression".

Thanks,

Randy

-----Original Message-----
From: PROME Christophe [mailto:[email protected]] 
Sent: Tuesday, August 30, 2011 8:51 AM
To: [email protected]
Subject: Enable Compression

Hello

I am using OpenCMIS to upload a 140 Mb XML file to an Alfresco repository with 
SOAP.
I am trying without success to enable Client Compression.

According to 
http://chemistry.apache.org/java/developing/dev-session-parameters.html we need 
to set CLIENT_COMPRESSION to "true" in order to activate the compression.
Unfortunately, I don't find this parameter in the SessionParameter class. 

So I did the following :

params.put("org.apache.chemistry.opencmis.binding.clientcompression","true");

But it doesn't seem to have any effect. The upload takes the same time as when 
the compression is turned off and the same amount of data is transferred 
(according to TOMCAT manager).
TOMCAT is configured to accept GZIP compression.

My question are: 
Is the compression implemented ? (I am using OpenCMIS 0.4.0)
If yes, what am I doing wrong ?

Thanks

Christophe


Reply via email to