I'm writing a servlet and I need to ensure it is thread safe.

How can I do that?

Thanks!