diff --git a/src/docbkx/server.xml b/src/docbkx/server.xml index 3b2d44cf..5b4f7c64 100644 --- a/src/docbkx/server.xml +++ b/src/docbkx/server.xml @@ -545,6 +545,19 @@ MessageEndpoint, though these actions are usually performed in an endpoint interceptor. + + + Endpoints, like any other Spring Bean, are scoped as a singleton by default, i.e. one instance of the + bean definition is created per container. Being a singleton implies that more than one thread + can use it, so the endpoint has to be thread safe. If you want to use a different scope, such as + prototype, refer to the + Spring Reference documentation. + + + Note that all abstract base classes provided in Spring-WS (like AbstractDomPayloadEndpoint etc) are + thread safe. + +
<classname>AbstractDomPayloadEndpoint</classname> and other DOM endpoints