This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Data corruption in data file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Data corruption in data file" Watch "Data corruption in data file" New topic
Author

Data corruption in data file

Anton Golovin
Ranch Hand

Joined: Jul 02, 2004
Posts: 476
How would you prevent it? What if JVM crashes and a thread fails to write record completely? How to handle that?


Anton Golovin (anton.golovin@gmail.com) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
If it's not in the requirements, I wouldn't address it at all.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Clivant Yeo
Ranch Hand

Joined: May 22, 2004
Posts: 124
I guess the probabilty of the JVM crashing while writing the Data file is very unlightly, you must be very unlucky to have encountered that.

For safety precaution, I guess that's why people do backups, I think you have to assume that the CSR don't take care of backups, it's up to the job of the administrator.

Just my two cents of opinion


Clivant Yeo
My Personal Website
mike acre
Ranch Hand

Joined: Sep 23, 2003
Posts: 197
It is taken care of by the fact you validate (or should validate) the data file stringently and don't allow the use of any file that fails.


SCJP 1.4, SCJD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data corruption in data file
 
Similar Threads
accessing data objects
JavaRanch Hit Count & Statistics
about transforming data
tool tip over a text
supported content types in jsp