Link to home
Start Free TrialLog in
Avatar of Phil5780
Phil5780

asked on

Java file write in a transaction

Hello team,

I have a Java application which which needs to write a file to a filesystem destination completely before being read by anything.  Wouldn't this be easily achieved by running the file writing logic inside a transaction?  

This should not allow any user or application to see the file until writing is 100% complete.  Am I correct in this idea?
ASKER CERTIFIED SOLUTION
Avatar of tvedtem
tvedtem
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CEHJ
I have a Java application which which needs to write a file to a filesystem destination completely before being read by anything.
What is 'being read'?

Don't describe the code you think you need or the steps. Describe the GOAL