Troubleshooting
Problem
If multiple services have the same handler specified in webservices.xml, they may share a single instance of the handler. JAX-RPC Handlers must be programmed to be thread-safe.
Cause
This is by design. The JAX-RPC specication states "Handler instances in a handler chain should not rely on the thread local state to share state between handler instances." This means that the implementation of the Web Services engine may create a single instance or multiple instances of the handler.
Resolving The Problem
Program your JAX-RPC handler to be thread-safe. There may be other web service implementations that create multiple handler instances, but to be safe the customer must make their handlers thread-safe.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21215894