Thanks for the input. I'll look into it.
Hi, thank you for attention.
I solve this problem by following way.
1. First I read compressed stream to some byte array.
2. Second calculate original buffer size and place it into metadata.
CompressingUnMarshaller now sets content-length to Integer.MAX_VALUE if the wrapped unmarshaller is HTTPUnMarshaller. This way, HTTPUnMarshaller will not stop reading until it hits end of file.
See JIRA issue JBREM-927 "Adjust content length when CompressingUnMarshaller wraps HTTPUnMarshaller" (http://jira.jboss.com/jira/browse/JBREM-927).