... 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 ]
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop