Im writing a client java application which uses DFC to upload files to the repository.
In order to preserve memory on the client each file is uploaded when a user selects it, or when a user via. twain scans a picture using a scanner.
So to make sure all files are uploaded or non are uploaded i would like to begin a transaction (beginTransaction) when the first file is uploaded and then commitTransaction when the user is finished uploading the data. If something fails i would then of course use rollbackTransaction.
My problem is the 5 minute timeout, so if a user is a bit slow and have not interacted (uploaded a file or completed the entire upload) with the system for 5 minutes the server closes the session and the entire upload is binned.
Any1 has any thoughts on this. I know im not supposed to but i hold on to the session i get from begintransaction.
Im not sure if its the entire design thats **** or my way of implementing it.
Can a beginTransaction scope several getSession() releaseSession() calls.
Any1?