-
Bug
-
Resolution: Done
-
Major
-
jbossws-native-3.0.5
-
None
JBoss AS going out of memory after a few hrs of mild load (~100 request/minute) having the following code
@WebServiceProvider(serviceName = "SampleService", portName = "SamplePort", wsdlLocation = "WEB-INF/wsdl/sample.wsdl")
@BindingType(value = HTTPBinding.HTTP_BINDING)
@ServiceMode(value = Service.Mode.PAYLOAD)
public class SampleProvider extends AbstractServiceProvider implements Provider<Source> {
@Resource(type = Object.class)
protected WebServiceContext wsContext;
public Source invoke(Source req)
{ MessageContext mc = wsContext.getMessageContext(); String path = ((String) mc.get(MessageContext.PATH_INFO)).substring(1); JAXBSource result; // // whatever // return result; }}
As I mentioned in referenced forum thread, if I set wsContext to null after use, memory leak goes away.
- is blocked by
-
JBWS-2486 POJO service should be shared
- Closed