From 0af65df9e0ddba484ea5edb50ba311185297ef1e Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Sun, 2 Nov 2008 10:18:29 +0000 Subject: [PATCH] SWS-443 --- src/docbkx/server.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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