Sessions in java servlets

Reply

Join Date: Sep 2008
Posts: 3
Reputation: kiransarv is an unknown quantity at this point 
Solved Threads: 0
kiransarv kiransarv is offline Offline
Newbie Poster

Sessions in java servlets

 
0
  #1
Sep 5th, 2008
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.....
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: Sessions in java servlets

 
0
  #2
Sep 5th, 2008
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.
Last edited by stephen84s; Sep 5th, 2008 at 1:37 pm.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC