tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Bauer <peter.ba...@apus.co.at>
Subject Re: All threads are currently busy
Date Fri, 19 Oct 2007 08:10:17 GMT
Am Donnerstag 18 Oktober 2007 schrieb Christopher Schultz:
> Peter,
>
> > This next method call is the problem. I am sending a POST request from
> > one servlet instance to another one. But in situations with high load,
> > all 20 instances are busy, so the ActiveRoleRemoval.sendLogoutMessages
> > method which sends the POST request blocks because there is no other
> > instance/thread to process the request.
> > Is this quite possible or nonsense?
>
> What if you use a RequestDispatcher.forward() instead of doing your own
> POST? Is that an option? The current thread is always available ;)
>
> -chris
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

Hi cris, 

how does this RequestDispatcher.forward() work? I would have to generate a new 
HttpServletRequest and Response myself and send it to my Servlet URL, how 
could this be done? Is it guaranteed to be received by the same servlet 
instance?

br,
Peter

-- 
Peter Bauer
APUS Software G.m.b.H.
A-8074 Raaba, Bahnhofstrasse 1/1
Email: peter.bauer@apus.co.at
Tel: +43 316 401629 24
Fax: +43 316 401629 9

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message