Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316461 - Zip Hessian Remote Service Calls and Replies for efficiency
Summary: Zip Hessian Remote Service Calls and Replies for efficiency
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: communication (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0.0.M2   Edit
Assignee: Christian Campo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 09:43 EDT by Christian Campo CLA
Modified: 2010-10-29 06:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Campo CLA 2010-06-10 09:43:42 EDT
The task involves adding a system property "riena.communication.zip" which can be set to "true" or "false" or left out. If set to the "true" on the calling client, the hessian request is zipped using GZIPOutputStream. The Server is not configured but detects in the datastream whether the call is zipped and acts accordingly. If the call is zipped, the reply will also be zipped by the server. The client in turn checks if the reply from the server is zipped if so it unzips it before deserializing.

Checking whether a datastream is done in a two step process. First the HTTP Header "Content-Encoding" "gzip" is set (in request and reply). Second the first two bytes are checked for a GZIP MAGIC. A fixed value prepending any GZIP packed datastream.
Comment 1 Christian Campo CLA 2010-06-10 09:45:57 EDT
The default is zipped="false". The same built version of Riena needs to be used on client and server in order for zipping to work.
Comment 2 Christian Campo CLA 2010-06-17 03:42:49 EDT
fixed for Riena 2.1. (NOT in Helios version 2.0)