----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Jean-Luc:
I solved my problem because my application was not using
req.getSession(true), so jserv was not creating the cookie. I did not know
that you had to tell jserv to use sessions explicitly. My own application
has its own sessioning that is independent of jserv. We will be moving
over to support jserv later.
I have been using the balance protocol. The jserv.conf file looks like
this on both the apaches:
ApJServMount /servlet balance://set1/eparties
ApJServBalance set1 app1 6
ApJServBalance set1 app2 6
ApJServBalance set1 db2a 8
ApJServBalance set1 db2b 8
ApJServHost app1 ajpv12://app1.eparties.com:8007
ApJServHost app2 ajpv12://app2.eparties.com:8007
ApJServHost db2a ajpv12://db2.eparties.com:8007
ApJServHost db2b ajpv12://db2.eparties.com:8008
ApJServRoute JS1 app1
ApJServRoute JS2 app2
ApJServRoute JS3 db2a
ApJServRoute JS4 db2b
ApJServShmFile logs/jserv_shm
Should we change the config on each machine? Or does this look ok?
-MA
Jean-Luc Rochat wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Michael Amster wrote:
> >
> > Hi:
> >
> > I have a load balancing environment with two Apache servers on RH 6.1
> > and two Solaris 2.7 Jserv servers. I currently don't see the Jserv
> > session cookie getting set even though I have the
> > session.useCookies=true set in zone file. My application sets cookies
> > as well. Is there anything else that I need to do to ensure that the
> > cookies get set? I am testing with Netscape with the cookie warning
> > enabled. I see my cookies getting set. As I understand the session
> > cookie mechanism to be the core of the routing protocol, I would like
> > ensure that this is working right.
> >
> Michael,
>
> How are you doing your load-balancing ? using dedicated hardware,
> reverse proxy, jserv built-in load-balancing or what ?
> Because you said you have 2 Apache servers.
> If you use JServ built-in load-balancing (ie: using the "balance"
> protocol), is every Apache able to recognize the 2 JServs using the
> Routing parameter ?
> Are you trying to use different zones in your applications ? (JServ
> sessions are dedicated to one zone).
>
> Can I have a look at your config files ?
>
> Jean-Luc
> (you can see session cookies/load-balancing here :
> http://jnix.penguinpowered.com/servlet/SessionServlet ). that's
> working...
>
> Jean-Luc
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]