... which
you should NOT do. It's deprecated, and -even more importantly- does not guarantee that the servlet is thread-safe.
Much better to write the code in a thread-safe manner. That means protecting all mutable shared data -e.g. instance fields- against concurrent access (if one of the accesses might change the data).
[ January 08, 2008: Message edited by: Ulf Dittmer ]