954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Sessions in java servlets

Can any one help me out in creating sessions for each request in java servlets so that until one request completes no other requests will be processed.....

kiransarv
Newbie Poster
3 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

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
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You