Compression policy - 6.2

Talend ESB Service Developer Guide

EnrichVersion
6.2
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
Installation and Upgrade
EnrichPlatform
Talend ESB

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>