From what your mentioning I do not see any link to actual sessions.
But for your requirement read about synchronized methods in Java and just apply the same to whichever method(service(), doGet(0 or doPost()) you are using to process your requests in the servlet.
Although I think there should be a better way to achieve what you are trying to without restricting your servlet to just service one request at a time.
stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154