This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi i am new to java.
I need to make an online examination application in java. The requirement is that while exam is going on If the system restarts the after logging in the exam must start from where it had stopped. I thought of log4j but don't know whether its correct or not. I am not getting any ideas . Can any one please help me with this?
Well, normally what you would do in an online application would be to make the user sign in, and then use their user ID to access a database entry to read something from a database in which you keep track of the relevant information. Or if you aren't making the user sign in, then perhaps something like a cookie or the user's IP address would work instead.
This is just ordinary web application programming, though. I'm not aware of any open-source projects which would help with that (and log4j definitely wouldn't help in the least).
Joined: Oct 08, 2012
actually if it was a web application i didnt have any problem . The clients need a desktop application. so i am using swings .
Okay, so not on-line after all. But the answer is the same. Keep track of how far the user has proceeded by writing something to a disk file, or a database, or something like that. I'm being intentionally vague because you haven't provided a lot of details about your requirements, but that's the general idea.
Joined: Oct 08, 2012
Thanks for the reply. i will try to store the user operation for every 15 sec to a database.
The requirement is to build a desktop application using swing or core java. Consider an user will take the exam of 50 questions and when the exam is going on if the power fails or system restarts , then after again logging in the user must continue the exam from where he left off.the question are most likely multiple choice.