Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sessions with database

 
anand chawla
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Guys
just caught with one problem
can anyone tell me how do i solve this problem of mine.
I am devloping a program for online exams.The two problems i m facing is that if one person is answering the first question the other one on the network is getting the second one...naturally because of thread concept...but can anyone tell me how do i solve this problem....someone had told me to use implement SingleThreadModel which i did and to some extent it worked...but my requirement is to create a session...and i have very little doubt as to how to go about it....even if i create session what are the values i attach to it.....
pls help
 
james_deshpande
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bhidu,
pass username in session.
Generate q papers saperately for each session into an array or table.Then use that q paper and the user name to fetch next question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic