I thought it would work too. But unfortunately it did not.:(

In both applet and servlet code, I have the trace log. From time to time,
while in
applet log the jsessionid is the correct one, but in servlet, it is a
different one.

Any idea?

-Simon

-----Original Message-----
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 4:42 PM
To: Tomcat Users List
Subject: Re: Applet in tomcat clustering


yes, that should work. print out some debug statements on the server to make
sure that your request indeed gets the session Id you
want it to.
Assuming you have clustering turned on and working properly, you should be
good to go

Filip
----- Original Message -----
From: "Simon Zeng" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, July 12, 2004 2:40 PM
Subject: RE: Applet in tomcat clustering


> I thought I did it. Here are my steps
> 1. first get jsessionid from servlet
> 2. pass the jsessionid to applet (through htm page)
> 3. inside applet, create a new HTTPUrlConnection, and set cookie property
> with jsessionid.
> 4. connect to server.
> 5. In server, the request was sent to a different tomcat instance (this is
> against the sticky session as stated in tomcat cluster).
>
> I might have missed out something, please point them out if so.
>
> Thanks,
> -Simon
>
> -----Original Message-----
> From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 12, 2004 2:56 PM
> To: Tomcat Users List
> Subject: Re: Applet in tomcat clustering
>
>
> you will need to send up cookies just like the HTTP protocol says in order
> to keep state
>
> Filip
> ----- Original Message -----
> From: "Simon Zeng" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Monday, July 12, 2004 1:39 PM
> Subject: RE: Applet in tomcat clustering
>
>
> > My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate
> > between applet and server.
> >
> > Thanks,
> > -Simon
> >
> > -----Original Message-----
> > From: Simon Zeng [mailto:[EMAIL PROTECTED]
> > Sent: Monday, July 12, 2004 1:51 PM
> > To: 'Tomcat Users List'
> > Subject: Applet in tomcat clustering
> >
> >
> >
> > Hi,
> >
> > Does any use applet in tomcat clustering?I have an question and need
some
> > help.
> >
> > I have set up two tomcat instances in cluster/load balance. My
> > webapplication has one feature using applet. As I understand, tomcat
> > cluster/load balance has sticky session which means subseqent requests
> being
> > sent to the same tomcat once the browser/server connection is setup.
This
> is
> > true in my application except while using applet, the request is sent to
> > different tomcat randomly. I use HTTPTunnel to communicate between
applet
> > and server.
> >
> > Thanks,
> >
> > -Simon
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to