users@grizzly.java.net

Re: How to enable compression in Grizzly Standalone app?

From: mxc <mark_at_jumpingbean.co.za>
Date: Tue, 27 Apr 2010 10:43:01 -0700 (PDT)

Hi there,

Here is a copy of the printable text. Let me know if you want the hex.
 ---- Request ----

4a,GET /dataservice/topsitesbysize/20100327/20100331/10 HTTP/1.1
accept-encoding: gzip
User-Agent: Java/1.6.0_15
Host: 192.168.1.216:9998
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

----Response --------

"Z
B)EVo@@\'N,7CV6[
a4HTTP/1.1 200 OK
server: grizzly/1.9.8
Content-Type: text/xml
Content-Length: 543
Date: Tue, 27 Apr 2010 17:24:40 GMT

Does this help?



Oleksiy Stashok wrote:
>
> Can you pls. share the wire shark log with HTTP request and response?
>
> Thanks.
>
> On Apr 27, 2010, at 19:07 , mxc wrote:
>
>>
>> Hi all,
>>
>> I have scoured the net and understand the following needs to be done
>> to get
>> your grizzly container to send using gzip.
>>
>> SelectorThread threadSelector =
>> GrizzlyWebContainerFactory.create(baseUri, initParams);
>> threadSelector.setCompression("on");
>> threadSelector.setCompressionMinSize(0);
>> threadSelector.setCompressableMimeTypes("text/xml");
>>
>>
>> However I don't seem to get compressed data being sent through. I have
>> checked using wireshare and get no content-encoding header sent
>> back. I am
>> making use of jax-rs for a simple web service. What am I doing wrong?
>>
>> thanks
>>
>>
>> -----
>> http://www.jumpingbean.co.za Jumping bean your java and linux experts
>> http://www.bondedadsl.co.za Bonded ADSL Solutions
>> http://www.ip-pbx.co.za Call Centre and Business PBX specialists
>>
>> --
>> View this message in context:
>> http://old.nabble.com/How-to-enable-compression-in-Grizzly-Standalone-app--tp28379154p28379154.html
>> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>
>


-----
http://www.jumpingbean.co.za Jumping bean your java and linux experts
http://www.bondedadsl.co.za Bonded ADSL Solutions
http://www.ip-pbx.co.za Call Centre and Business PBX specialists

-- 
View this message in context: http://old.nabble.com/How-to-enable-compression-in-Grizzly-Standalone-app--tp28379154p28379884.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.