Hi!
Probably you cant keep ObjectStreams indefinitely open, because
each one (for each new request from applet) needs a
thread on servlet engine. And other resources - request/response pairs,
and so on.
Other servlet engines might implement timeout policies
(e.g. closing requests/responses and associated threads
when "nothing happens" on their output stream)
It's better let the applet periodically ask for the object,
and the servlet can answer with an unchanged status code if the
object to be sent did not changed, without re-sending the object -
just to spare cpu/network resources.
not very helpfull..
Cezar.
On Tue, 11 May 1999, Tim Fleming wrote:
> I have an applet that requests data objects from a servlet via object
> serialization over http. Once the request is made, the applet and
> servlet keep their respective ObjectStreams open indefinitely so the
> servlet can send periodic updates. The objects from the servlet are
> always the same class.
>
> The applet receives the first object ok. When the servlet sends the
> next one the applet reports "EOF Exception". The third and subsequent
> objects report "java.io.StreamCorruptedException: InputStream does not
> contain a serialized object".
>
> Any ideas where the problem may be?
>
> Thanks in advance.
>
>
> ---------------------------------------------------
> Tim Fleming · Enterprise Technologist · ACI
> Ph (415) 289-3933 · Fax (415) 332-4818
> ---------------------------------------------------
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
Cezar Totth email: [EMAIL PROTECTED]
Fax: (401) 220 33 95
Genesys Software Romania Phone: (401) 638 49 44
Stefan Furtuna 169, sect.6
cod 77171, Bucharest
Romania
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html