Skip to main content

JAX-WS multithreaded client hangs on one thread when using http WSDL

1 reply [Last post]
gmolik
Offline
Joined: 2008-05-08

I have a test client that creates a javax.xml.ws.Service with a http URL to the WSDL and I get a handle to the service interface. I immediately fire off 30 concurrent threads and send requests to the service. All threads are fine except for one; it hangs until it times out and the endpoint never receives that request. This problem also occurs for a single thread.

If I add a 5 second delay before firing off the threads OR if I create the Service with a file URL to the WSDL, everything is fine. It seems that the delay allows some type of initialization to complete when using the http URL since file access is faster. Has anyone come across this issue?

This appears to only occur when using the CXF client implementation.

Thanks in advance.

Message was edited by: gmolik

Message was edited by: gmolik

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmolik
Offline
Joined: 2008-05-08

Using a different StAX implementation seems to have solved the problem. wstx-asl-3.2.2

Message was edited by: gmolik