Brian
Brian

Reputation: 6450

How enable GZIP compression for Spring HttpInvoker requests using Tomcat?

Wondering if anyone has set up GZIP compression for Spring HttpInvoker requests using Tomcat, and what steps are necessary?

Also, any advice on whether it's actually worth it; is there much to be gained from trying to compress what are basically serialized Java objects, or do they not really reduce in size much?

Thanks,

Brian

Upvotes: 2

Views: 5913

Answers (2)

stacker
stacker

Reputation: 69002

Extend SimpleHttpInvokerRequestExecutor and override the I/O methods with GZIPInput/Output-Stream example

Upvotes: 2

redben
redben

Reputation: 5696

If you can put Apache in front of Tomcat then you'd do it using Apache web server

Upvotes: 0

Related Questions