Enable GZIP in JBoss7.1.0EAP
sromit Sep 25, 2019 5:25 AMI am trying to get a response from Postman where I have deployed the war file in JBoss7.1.0 eap server. But I am not getting any response in Postman. There are no errors in the logs. I have used @GZIP in the response, I heard JBoss doesnot support GZIP , and maybe that is why it is not giving the response. The same war file was giving response in old JBoss5.1 Server without issue .What are my options to fix the issue? If I comment the //@GZIP, the time it is taking is huge leading to crash of Postman itself. How to fix this problem in JBoss7.1.0
I have tried to add the following lines in standalone.xml according to the site https://access.redhat.com/solutions/3201422
<filter-ref name="gzipfilter"/>
<gzip name="gzipfilter"/>
But it didnt resolve the issue
Service codebase :
@POST
@Path("/copyCatalog")
@GZIP
@Consumes(MediaType.APPLICATION_XML)
@Produces(MediaType.APPLICATION_XML)
public com.gee.gecs.cosmos.webservice.autocat.insertupdateresponse.CatalogData getcopyCatalog(CopyCatalogData cd) {
//CopyCatalogResponse response = new CopyCatalogResponse();
//CopyCatalogResponse copyCatalogRes =new CopyCatalogResponse();
com.gee.gecs.cosmos.webservice.autocat.insertupdateresponse.CatalogData copyCatalogRes=
new com.gee.gecs.cosmos.webservice.autocat.insertupdateresponse.CatalogData();
try {
AutoCatRequestProcessorCopyCatalog requestProcessor = new AutoCatRequestProcessorCopyCatalog(cd, copyCatalogRes);
requestProcessor.processRequest();
} catch (AutoCatException e) {
copyCatalogRes.setResponsecode(exceptionMap.get(e.getFaultCode()));
copyCatalogRes.setResponsestatus(e.getFaultMessage());
}
return copyCatalogRes;
}
The logs in JBoss Server :
```
16:27:43,186 INFO [com.gee.gecs.cosmos.webservice.autocat.util.AutoCatRequestProcessorCopyCatalog] (default task-2) inside copy catalog functionality
16:28:05,160 INFO [com.gee.gecs.cosmos.webservice.autocat.util.AutoCatRequestProcessorCopyCatalog] (default task-2) New Ctlg_ver_in 16479769
16:28:06,186 INFO [com.gee.gecs.cosmos.webservice.autocat.cache.ICAMAutoCATCacheSingleton] (default task-2) Start: ICAMAutoCATCacheSingleton getICAMAutoCATCache()
16:28:06,187 INFO [com.gee.gecs.cosmos.webservice.autocat.cache.ICAMAutoCATCacheSingleton] (default task-2) End: ICAMAutoCATCacheSingleton getICAMAutoCATCache()
16:29:32,078 INFO [com.gee.gecs.cosmos.webservice.autocat.util.AutoCatRequestProcessorCopyCatalog] (default task-3) inside copy catalog functionality
16:29:53,659 INFO [com.gee.gecs.cosmos.webservice.autocat.util.AutoCatRequestProcessorCopyCatalog] (default task-3) New Ctlg_ver_in 16479770
16:29:54,758 INFO [com.gee.gecs.cosmos.webservice.autocat.cache.ICAMAutoCATCacheSingleton] (default task-3) Start: ICAMAutoCATCacheSingleton getICAMAutoCATCache()
16:29:54,759 INFO [com.gee.gecs.cosmos.webservice.autocat.cache.ICAMAutoCATCacheSingleton] (default task-3) End: ICAMAutoCATCacheSingleton getICAMAutoCATCache()
```
16:27:43,186 INFO [com.gee.gecs.cosmos.webservice.autocat.util.AutoCatRequestProcessorCopyCatalog] (default task-2) inside copy catalog functionality16:28:05,160 INFO [com.gee.gecs.cosmos.webservice.autocat.util.AutoCatRequestProcessorCopyCatalog] (default task-2) New Ctlg_ver_in 1647976916:28:06,186 INFO [com.gee.gecs.cosmos.webservice.autocat.cache.ICAMAutoCATCacheSingleton] (default task-2) Start: ICAMAutoCATCacheSingleton getICAMAutoCATCache(16:28:06,187 INFO [com.gee.gecs.cosmos.webservice.autocat.cache.ICAMAutoCATCacheSingleton] (default task-2) End: ICAMAutoCATCacheSingleton getICAMAutoCATCache()16:29:32,078 INFO [com.gee.gecs.cosmos.webservice.autocat.util.AutoCatRequestProcessorCopyCatalog] (default task-3) inside copy catalog functionality16:29:53,659 INFO [com.gee.gecs.cosmos.webservice.autocat.util.AutoCatRequestProcessorCopyCatalog] (default task-3) New Ctlg_ver_in 1647977016:29:54,758 INFO [com.gee.gecs.cosmos.webservice.autocat.cache.ICAMAutoCATCacheSingleton] (default task-3) Start: ICAMAutoCATCacheSingleton getICAMAutoCATCache(16:29:54,759 INFO [com.gee.gecs.cosmos.webservice.autocat.cache.ICAMAutoCATCacheSingleton] (default task-3) End: ICAMAutoCATCacheSingleton getICAMAutoCATCache()