Tom Cunningham created JBESB-3741:
-------------------------------------
Summary: Enabling compression on JBossWS webservice endpoints
Key: JBESB-3741
URL:
https://issues.jboss.org/browse/JBESB-3741
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web Services
Affects Versions: 4.11
Reporter: Tom Cunningham
Fix For: 4.11
Help Desk Ticket Reference:
https://c.na7.visual.force.com/apex/Case_View?id=500A0000007CJFt&sfdc...
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira