users@jersey.java.net

[Jersey] Hot iostream for tar

From: dloy <dloy_at_ucop.edu>
Date: Fri, 17 Aug 2012 07:37:29 -0700

Sorry, this may have been covered recently but I have not kept up with
the list.

My program creates large tar files (e.g. > 15G). I need the output
stream to be a direct feed to the user while the tar is being created.
Currently I create a tar file and then return the file. The problem is
that the delay on the tar creation can be over 1 hour (especially using
gz) and often times out - no activity on the connection while the file
is being created.

Is there a best practice for doing this?

How is the mime set?

Can a dropped connection be detected?

Any help with this would be terrific.

Thanks
David