I have a problem with transfering files( 2MB - 20MB ).
Scenario :
I have a fat-client and ejb-tire and web-tire.
I want to transfer files from fat-client to a file-server and update
the related information in database. (all the directory structure,
file server related issues and database update issues must be
handled transparently)
I need to start a transaction to control the flow of events because
if the client disconnected during file transfer, all the changes
must be rolled back.
The files will be downloaded later using the web-tire.
What is the best solution ?