Red Hat Bugzilla – Bug 780709
Enabling compression on JBossWS webservice endpoints
Last modified: 2013-10-11 14:52:27 EDT
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000007CJFt&sfdc.override=1
A customer requested the ability to enable compression on JBossWS endpoints, however the codebase used within SOA does not allow for features/interceptors to be specified on a global basis.
Within the ESB codebase we extend the CXF servlet in order to enable invm invocations with the CXF codebase, this same mechanism can be used to enable global features/interceptors by extending the servlet as follows.
public class ESBFeatureCXFServletExt extends ESBCXFServletExt
private static Logger LOG = Logger.getLogger(ESBFeatureCXFServletExt.class) ;
public void loadBus(final ServletConfig config)
if (bus.getExtension(ESBFeatureCXFServletExt.class) == null)
bus.setExtension(this, ESBFeatureCXFServletExt.class) ;
final GZIPFeature feature = new GZIPFeature() ;
LOG.info("Included GZIP Feature on CXF bus deployment") ;
This servlet will enable the GZIP feature on each CXF bus which is deployed.
Link: Added: This issue relates to JBQA-5063
If this is only to modify some existing test cases, then it can go into 5.2, if it is more encompassing than that or will impact SOA 5.2 in any way, we need to discuss in team meeting.
This would be a change to the ESB servlet used to augment the CXF behaviour. We would modify it as above (or similar) to enable compression on the CXF webservices.
The change is minimal and benefits customer deployments of CXF webservices.