Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Huge file transfer problem

  Asked By: Norma    Date: Nov 19    Category: Java    Views: 624

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 ?



3 Answers Found

Answer #1    Answered By: Dep Tran     Answered On: Nov 19

You should let Session Bean keep track of all activities.
The fat-client should let the Session Bean know file  transfer is complete.
Then Session Bean calls Entity Bean for update.
( this sounds almost identical to what I did without J2EE )

Answer #2    Answered By: Cesara Fernandez     Answered On: Nov 19

No I did mentioned any particular method of file  transferring.
What are your options ?

Answer #3    Answered By: Daimon Jones     Answered On: Nov 19

You mean i need to use rmi/iiop to transfer  files (2 mb - 20 mb) between
fat-client and application sever ?
it's a bad practise to use iiop as a transfer protocol ( causes high traffic in
app-server )
performance and availability are the main concerns in projects ;)

Didn't find what you were looking for? Find more on Huge file transfer problem Or get search suggestion and latest updates.