From: Amit D. <ami...@ho...> - 2002-08-01 06:33:21
|
In response to john kellys mail : I did have this in mind but this means each jsp spawns 2 threads viz a poller and one which interacts with the pool manager to get data. the pooler (by some http method let that not bother us now) might figure out if the client ahs dicsonnected and will stop the other thread. The first issue that comes to my mind is ... we should not handle the response object.Its bad practice handling the response/request other than the scope of the web server (which our PoolMgr wud be) Secondly it makes a basic assumption that this poolManager will be used by HTTP Clients only. Also if we stick to the threads spawned by each JSP , we might end up choking the JVM by spawning a large no of threads,this can very much happen in large volume sites. Plz comment - Amit >From: John Kelly <joh...@ya...> >To: jav...@li... >Subject: Re: [Javtools-poolmngr] Craching server >Date: Wed, 31 Jul 2002 09:01:52 -0700 (PDT) > >A possible solution, even though I might be way off >the mark here, might be to somehow access the actual >HTTP Connection (HttpURLConnection) and use this to >constantly monitor the state of the client. This could >be done using a light-weight thread with a simple >polling algorithm. The thread sends a message/event >the moment the client terminates the connection or >invalidates the session. > >I'm not sure how, but I'm guessing there is some way >to access the actual HTTP socket and monitor its >state. > >Please Comment. > >John. > >__________________________________________________ >Do You Yahoo!? >Yahoo! Health - Feel better, live better >http://health.yahoo.com > > >------------------------------------------------------- >This sf.net email is sponsored by: Dice - The leading online job board >for high-tech professionals. Search and apply for tech jobs today! >http://seeker.dice.com/seeker.epl?rel_code=31 >_______________________________________________ >Javtools-poolmngr mailing list >Jav...@li... >https://lists.sourceforge.net/lists/listinfo/javtools-poolmngr _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com |