
Signature
This signature intentionally left blank.
>> Hallo
>> Below is my service method. Sleep causes that data are not written
[quoted text clipped - 27 lines]
> HTH,
> Ray
The servlet is going to have an open connection to its caller, for a very long time (a few days).
Its task will be to read some files on local filesystem every 15 secs and in case there
is anything to be passed to the caller, it will do that. Otherwise it will sleep for another 15 secs.
That is why I need servlet to sleep.
Greetings
Raymond DeCampo - 29 Jan 2006 14:38 GMT
>>>Hallo
>>>Below is my service method. Sleep causes that data are not written
[quoted text clipped - 32 lines]
> is anything to be passed to the caller, it will do that. Otherwise it will sleep for another 15 secs.
> That is why I need servlet to sleep.
This doesn't sound like something that fits the servlet architecture
very well. You might want to go with a traditional client/server
application. Or, if you want J2EE, use JMS (i.e. have your clients
subscribe to a JMS topic and have a timed app post a message to the
topic whenever there are updates to the files).
HTH,
Ray

Signature
This signature intentionally left blank.