users@glassfish.java.net

Re: How to detect data transfer success

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 15 Sep 2008 12:40:09 -0400

Salut,

glassfish_at_javadesktop.org wrote:
> Hello there,
> When sending for example a file to a client from a servlet running on glassfish, I do not know how to get notified when the client successfully downloaded the whole file (or not).
> This information should be available, at least with TCP connections.

How do you write to the client? I suspect using an OutputStream, right?
The stream will block until the client has fully read the bytes. If the
client stops, then you should get an IOEXception.

A+

-- Jeanfrancois


> thanks a lot,
> raphael
> [Message sent by forum member 'raphaelouzan' (raphaelouzan)]
>
> http://forums.java.net/jive/thread.jspa?messageID=299222
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>