Hey!
Have all requests go through a passthru servlet on Server 1 and then
pass on to Server 2. You will probably have to do your own
Session management though. The best solution is to find an
Application server that handles this because the code could get
messy.
Anyone else have any ideas. I tried to do the above but gave
up after I found that it would be difficult.
Sans adieu,
Danny Rubis
Anthony Mak wrote:
> I am planning to split the load to the site by putting 2 servers with exact
> same JSP-Servlet pages like this:
>
> Client PC ---- Gateway ----- Server 1
> ----- Server 2
>
> If I have a session object and the session ID is passed with EncodedURL
> method, then, when next time the client is redirected to server 2, the
> session ID will be invalid because the corresponding session object is in
> server 1.
>
> Please give me some hint on how to solve this problem.
>
> Anthony
> ---------------
> $B%"%s%=%s%K!<!!%^%C%/ (B
> $B%j%s%/>pJs%7%9%F%`3t<02q<R (B
> $B%"%I%P%s%9;v6HIt!! (BE9 $B%A!<%` (B
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html