users@grizzly.java.net

Re: How to enable compression in Grizzly Standalone app?

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Tue, 27 Apr 2010 19:14:10 +0200

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
>