This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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