stalling servlets/jsps with wait/notify?

2003-06-06 Thread Richard Heintze
I had an interview with a prospective client today who
has problems with a current web application (written
in lotus notes?). He knows from his present
implementation that he can have no more than 5
simultaneous web clients accessing a certain resource
that resides on a machine different from his tomcat
server. Any additional clients must stall until the
others are done.

Hmmm Well on page 40 of Jason Hunter's Servlet
programming book it explains that static variables are
shared among multiple servlet instances. Hmmm... well
JSPs are servlets, I wonder if I could create a static
variable in a scriptlet (just for testing, of course)
and use wait and notify to stall web client #6 until
one of the other finish.

Does anyone know if this would work?

   Siegfried

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: stalling servlets/jsps with wait/notify?

2003-06-06 Thread Kwok Peng Tuck
Why would the client stall in the first place ? If you can figure out 
that problem, the webapp
could probably scale higher than 5 clients.

Richard Heintze wrote:

I had an interview with a prospective client today who
has problems with a current web application (written
in lotus notes?). He knows from his present
implementation that he can have no more than 5
simultaneous web clients accessing a certain resource
that resides on a machine different from his tomcat
server. Any additional clients must stall until the
others are done.
Hmmm Well on page 40 of Jason Hunter's Servlet
programming book it explains that static variables are
shared among multiple servlet instances. Hmmm... well
JSPs are servlets, I wonder if I could create a static
variable in a scriptlet (just for testing, of course)
and use wait and notify to stall web client #6 until
one of the other finish.
Does anyone know if this would work?

  Siegfried

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: stalling servlets/jsps with wait/notify?

2003-06-06 Thread Richard Heintze
The present implementation uses some third party
software overwhich we have no control. He knows from
experimenting with the third party software that he
does not want more than 5.


--- Kwok Peng Tuck [EMAIL PROTECTED] wrote:
 Why would the client stall in the first place ? If
 you can figure out 
 that problem, the webapp
 could probably scale higher than 5 clients.
 
 Richard Heintze wrote:
 
 I had an interview with a prospective client today
 who
 has problems with a current web application
 (written
 in lotus notes?). He knows from his present
 implementation that he can have no more than 5
 simultaneous web clients accessing a certain
 resource
 that resides on a machine different from his tomcat
 server. Any additional clients must stall until the
 others are done.
 
 Hmmm Well on page 40 of Jason Hunter's Servlet
 programming book it explains that static variables
 are
 shared among multiple servlet instances. Hmmm...
 well
 JSPs are servlets, I wonder if I could create a
 static
 variable in a scriptlet (just for testing, of
 course)
 and use wait and notify to stall web client #6
 until
 one of the other finish.
 
 Does anyone know if this would work?
 
Siegfried
 
 __
 Do you Yahoo!?
 Yahoo! Calendar - Free online calendar with sync to
 Outlook(TM).
 http://calendar.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
   
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]