----- Original Message ----- From: "Jose Solorzano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, February 10, 2002 2:32 PM Subject: RE: Load balancing app context ?
> > What kind of state do you store in those variables? > > With multiple VMs, you can store user/session state in cookies, in a shared > database or you > can use an application server. > > --Jose Well, I know it sounds weird, but I'm storing servlet's output stream in those variables. And than I block this servlet, thus it won't be able to close its output stream, which is the thing that happens when servlet thread goes out of its service() method. This way I have persistent output stream to client. And then all future HTTP requests can fetch this stored output stream and send some data back to client. But since I have multiple JVMs, this stored variable isn't unique anymore, because there are as many variables as there are JVMs, and each of them has its own servlet instance, right ? Thing works perfectly with one servlet engine instance, but I guess it won't do in load-balancing case... I didn't consider session till now, since client is applet and not browser, and I'm not sure how good is applet's URLConnection doing with cookies ? -Vjeran -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
