If possible, servlets should be coded to be thread-safe, such that the service method can be called concurrently from multiple threads. This threading model is the default for servlets running in EAServer. In most cases, it offers the best performance. If your servlet cannot support this threading model, you must do one of the following to ensure that the servlet executes safely in EAServer:
Code the servlet to implement the SingleThreadModel marker interface. This interface has no methods; the server recognizes that instances of any class that implements the interface must be single-threaded.
Configure the servlet’s threading properties as described in “Threading settings”.
Copyright © 2005. Sybase Inc. All rights reserved. |