> From: Liang Xiao Zhu [mailto:
ubekhet@...]
> 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!!!!
You are taking an action when a request comes in. There is no other time at which you can take an action to redirect a request.
The action you are taking is to choose whether to redirect the request based on a) whether it already has a session on this server, b) how many sessions this server has. You can detect both of these in the valve, and make a decision.
By the way, it sounds like you are writing a load-balancing framework. You are aware that Tomcat already has one?
- Peter
---------------------------------------------------------------------
To start a new topic, e-mail:
users@...
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...