Bug 780709 (SOA-3161)

Summary: Enabling compression on JBossWS webservice endpoints
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Kevin Conner <kevin.conner>
Component: JBossESB, JBossWSAssignee: tcunning
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0 GACC: kevin.conner
Target Milestone: ---   
Target Release: FUTURE   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3161
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kevin Conner 2011-07-12 10:36:33 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000007CJFt&sfdc.override=1
project_key: SOA

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) ;
    
    @Override
    public void loadBus(final ServletConfig config)
        throws ServletException
    {
        super.loadBus(config) ;
        if (bus.getExtension(ESBFeatureCXFServletExt.class) == null)
        {
            bus.setExtension(this, ESBFeatureCXFServletExt.class) ;
            final GZIPFeature feature = new GZIPFeature() ;
            feature.initialize(bus) ;
            LOG.info("Included GZIP Feature on CXF bus deployment") ;
        }
    }
}

This servlet will enable the GZIP feature on each CXF bus which is deployed.

Comment 1 Len DiMaggio 2011-08-05 17:51:34 UTC
Link: Added: This issue relates to JBQA-5063


Comment 2 Anne-Louise Tangring 2011-08-08 16:03:44 UTC
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.

Comment 3 Kevin Conner 2011-09-12 17:24:05 UTC
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.