Skip to main content

Talend ESB Compression policy

This section shows you how to use the Compression Feature in Talend ESB.

The compression feature of Talend ESB inherits the CXF GZIPOutInterceptor and enables GZIP compression of on-the-wire data. However, note that using Talend ESB Compression and CXF GZIP Compression together is not recommended.

The Talend ESB Compression feature is driven completely by the threshold attribute. So, the supported attribute is threshold - the value, in bytes, under which messages are not compressed. And its default value is "1024".

The Compression policy can be enabled via policy or by adding the feature, depending on the type of service (SOAP or REST).

Enabling via feature (support both Soap and REST service)

You can add the Compression feature to the features list:

<jaxws:features>
    <bean id="compressionFeature" class="org.talend.esb.policy.compression.feature.CompressionFeature">
        <property name="threshold" value="100"/>
    </bean>
</jaxws:features>

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!