« Return to Thread: Redirect request to another Tomcat server

Re: Redirect request to another Tomcat server

by Liang Xiao Zhu :: Rate this Message:

Reply to Author | View in Thread

But, what happen if I want using Session instead of Request? mean, I
want to refuse session according the number of session I have
currently!!! And them redirect the refused session to other tomcat
server!!!!

Thanks


Peter Crowther escribió:

> I'd write a Valve that pre-processes all of the incoming requests to the server.  It's capable of intercepting requests before the webapps see them, and it's capable of refusing to process.  I *think* you have, or can get, all the information you need at the point the valve runs.
>
>                 - Peter
>
>  
>> -----Original Message-----
>> From: Liang Xiao Zhu [mailto:ubekhet@...]
>> Sent: 15 May 2008 17:42
>> To: Tomcat Users List
>> Subject: Re: Redirect request to another Tomcat server
>>
>> Yes, maybe you are right that I couldn't salvage a session.
>> So, How can
>> manage that using as session, I mean can I redirect the
>> Tomcat sessions?
>> For example, I detected a session that I dont want to
>> response, and so I
>> want to redirect this session, How I have to do that?
>>
>> Thanks in advance!!!
>>
>> Propes, Barry L escribió:
>>    
>>> you'd probably have to hard code an http path in there, but
>>>      
>> I don't think you could salvage a session could you? Maybe you could.
>>    
>>> -----Original Message-----
>>> From: ubekhet [mailto:ubekhet@...]
>>> Sent: Wednesday, May 14, 2008 6:36 PM
>>> To: users@...
>>> Subject: Redirect request to another Tomcat server
>>>
>>>
>>> Hi everyone,
>>>
>>> I am wondering, if there is some posibility to redirect the
>>>      
>> request from
>>    
>>> one Tomcat Server to another one. I would like to know where is the
>>> point to change that. Basically, in one Tomcat Server I recieve the
>>> request I will check the headers and then depending of some
>>>      
>> parameters I
>>    
>>> will redirect the same request to another Tomcat or not.
>>>
>>> In fact, I have been looking at some files, such as,
>>> Http11NioProtocol.java and Http11NioProcessor.java, because
>>>      
>> both files
>>    
>>> are for managing the connector of Tomcat, in this case the connector
>>> Coyote using NIO.
>>>
>>> Thans in advance!!!
>>>
>>>
>>>      
>> ---------------------------------------------------------------------
>>    
>>> To start a new topic, e-mail: users@...
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>>
>>>      
>> ---------------------------------------------------------------------
>>    
>>> To start a new topic, e-mail: users@...
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>>      
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@...
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>>    
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@...
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


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

 « Return to Thread: Redirect request to another Tomcat server