We are currently using ServletExec on NT machines, but we also have a load
balancer and require the session to be persistent. We had to build our own
session object, which we intantiate on every JSP page. Here is a short summary
of how it works.
Our created session (call it InternetSession) is passed around from page to
page in the request object.
However, its key,value pairs which it can store, are commited to a database
table on each page.
So, in this way on each page, we try and get our InternetSession from the
request object. If this fails (meaning we have been load balanced and gone to a
different server) then we instantiate a new one and fill it with the values
that were stored in the database.
Of course this requires cookies and a whole lot of design....so i wish you the
best of luck :)
--- David Eaves <[EMAIL PROTECTED]> wrote:
> All,
>
> I have two Sun boxes running Jrun sitting behind a load-balanacer. As
> requests for servlets and JSPs come in they are split between the two Sun
> boxes depeneding on load. This seems to handle our current load just fine.
> However, if I want to use sessions to pass information between JSPs if the
> successive requests are routed through the load-balancer to the other box, I
> lose my session. How can I maintain a session in JRun across machines and
> JRun instances?
>
> Thanks,
> Dave Eaves
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets