Top.Mail.Ru
December 20th, 2004 - Java developers — LiveJournal
? ?

Java developers

December 20th, 2004
Image

07:45 pm - Imagerhekis - Servlet Programming / Sending asychronus data to clients

Hello. I'm trying to write an application (as a single/ collection of servlets) that will be able to "talk back to" any of the clients at any time, as opposed to simply writing responses for requests as they come in. I thought this might be a good place to ask about servlet programming because this community seems very active, and I'd appreciate any thoughts you might have to share.

Specifically, I'm thinking I'd like to try to retain the HTTPServletRequest / HTTPServletResponse objects as they come in, then whenever I need to send client X some info, I can just whip those out and send them from a background servlet thread. Does that seem sensible? I can use SSL to if anyone thinks that might help.
Thanks for your thoughts on this vague inquiry :)
Powered by LiveJournal.com
Image