Are Axis2 generated stubs thread-safe?

前端 未结 3 901
鱼传尺愫
鱼传尺愫 2020-12-14 09:14

Are client stubs generated from WSDL by Axis2 thread-safe?

Of course, \"thread-safe\" isn\'t necessary a rigorously defined term, so I\'m at least interested in the

3条回答
  •  -上瘾入骨i
    2020-12-14 09:36

    I'm not sure about axis2, but at least axis1 generates non-threadsafe client stubs. I got the impression pretty much every other SOAP client was non-threadsafe as well. If I remember correctly the issue was with the XML parsing library being used in a non-threadsafe way by the client stub.

    Using apache commons-pooling to pool the instances and using each one from one thread at a time worked well though.

    Update: For Axis2, see https://issues.apache.org/jira/browse/AXIS2-4357 (claims Axis2 is not threadsafe, by design)

提交回复
热议问题